Fix macOS cross compilation issue. (#2287)
This commit is contained in:
committed by
Nitish Tiwari
parent
582f99b438
commit
59685e2d6b
@@ -53,12 +53,12 @@ deadcode:
|
||||
|
||||
build: getdeps verifiers
|
||||
@echo "Running $@"
|
||||
@go build --ldflags $(BUILD_LDFLAGS)
|
||||
@go build -tags kqueue --ldflags $(BUILD_LDFLAGS)
|
||||
|
||||
test: build
|
||||
@echo "Running unit tests"
|
||||
@go test $(GOFLAGS) github.com/minio/mc/cmd...
|
||||
@go test $(GOFLAGS) github.com/minio/mc/pkg...
|
||||
@go test $(GOFLAGS) -tags kqueue github.com/minio/mc/cmd...
|
||||
@go test $(GOFLAGS) -tags kqueue github.com/minio/mc/pkg...
|
||||
@echo "Running functional tests"
|
||||
@(env bash $(PWD)/functional-tests.sh)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ _init() {
|
||||
fi
|
||||
|
||||
# List of supported architectures
|
||||
SUPPORTED_OSARCH='linux/amd64 windows/amd64'
|
||||
SUPPORTED_OSARCH='linux/amd64 windows/amd64 darwin/amd64'
|
||||
|
||||
## System binaries
|
||||
CP=`which cp`
|
||||
@@ -56,7 +56,7 @@ go_build() {
|
||||
release_sha256sum_default="$release_str/$os-$arch/$(basename $package).sha256sum"
|
||||
|
||||
# Go build to build the binary.
|
||||
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build --ldflags "${LDFLAGS}" -o $release_bin
|
||||
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -tags kqueue --ldflags "${LDFLAGS}" -o $release_bin
|
||||
|
||||
# Create copy
|
||||
if [ $os == "windows" ]; then
|
||||
|
||||
Reference in New Issue
Block a user