diff options
author | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2016-08-18 11:03:42 -0700 |
---|---|---|
committer | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2016-08-18 11:03:42 -0700 |
commit | 9029695ee358caa82116fc192cb4d505ea936274 (patch) | |
tree | 002b7d9361c8cd6f538300d1f4bcdc572da977bd | |
parent | 42cd785e4b5ed824a9b2a02a19aa534042b64325 (diff) | |
download | caffeonacl-9029695ee358caa82116fc192cb4d505ea936274.tar.gz caffeonacl-9029695ee358caa82116fc192cb4d505ea936274.tar.bz2 caffeonacl-9029695ee358caa82116fc192cb4d505ea936274.zip |
[build] set default BLAS include for OS X 10.11
the latest hunt for the ever-elusive vecLib/Accelerate
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -382,8 +382,11 @@ else LIBRARIES += cblas # 10.10 has accelerate while 10.9 has veclib XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep 'version' | sed 's/[^0-9]*\([0-9]\).*/\1/') + XCODE_CLT_GEQ_7 := $(shell [ $(XCODE_CLT_VER) -gt 6 ] && echo 1) XCODE_CLT_GEQ_6 := $(shell [ $(XCODE_CLT_VER) -gt 5 ] && echo 1) - ifeq ($(XCODE_CLT_GEQ_6), 1) + ifeq ($(XCODE_CLT_GEQ_7), 1) + BLAS_INCLUDE ?= /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers + else ifeq ($(XCODE_CLT_GEQ_6), 1) BLAS_INCLUDE ?= /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/ LDFLAGS += -framework Accelerate else |