Skip to content

Commit

Permalink
Fix macOS cross compilation issue. (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored and nitisht committed Oct 17, 2017
1 parent 582f99b commit 59685e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions buildscripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 59685e2

Please sign in to comment.