We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68655b5 commit da75a0eCopy full SHA for da75a0e
Makefile
@@ -354,8 +354,9 @@ else
354
# OS X packages atlas as the vecLib framework
355
LIBRARIES += cblas
356
# 10.10 has accelerate while 10.9 has veclib
357
- XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep -o 'version: 6')
358
- ifneq (,$(findstring version: 6,$(XCODE_CLT_VER)))
+ XCODE_CLT_VER := $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | grep 'version' | sed 's/[^0-9]*\([0-9]\).*/\1/')
+ XCODE_CLT_GEQ_6 := $(shell [ $(XCODE_CLT_VER) -gt 5 ] && echo 1)
359
+ ifeq ($(XCODE_CLT_GEQ_6), 1)
360
BLAS_INCLUDE ?= /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
361
LDFLAGS += -framework Accelerate
362
else
0 commit comments