mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Make gcc mandatory on OSX, since clang lacks certain GAS features
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,6 +1,7 @@
|
||||
#GOPATH := $(CURDIR)/tmp/gopath
|
||||
MAKE_OPTIONS := -s
|
||||
ARCH := $(shell uname -s)
|
||||
GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4)
|
||||
|
||||
all: getdeps install
|
||||
|
||||
@@ -19,7 +20,11 @@ build-utils:
|
||||
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha1
|
||||
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha256
|
||||
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha512
|
||||
ifeq ($(ARCH), Linux)
|
||||
ifeq ($(ARCH), Darwin)
|
||||
ifeq ($(GCCVERSIONGTEQ4), "1")
|
||||
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/checksum/crc32c
|
||||
endif
|
||||
else
|
||||
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/checksum/crc32c
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user