mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-27 03:55:20 +00:00
make : fix Apple clang determination bug (#4272)
Co-authored-by: Will Findley <findley@gmail.com>
This commit is contained in:
2
Makefile
2
Makefile
@ -30,7 +30,7 @@ ifeq '' '$(findstring clang,$(shell $(CC) --version))'
|
|||||||
CC_VER := $(shell $(CC) -dumpfullversion -dumpversion | awk -F. '{ printf("%02d%02d%02d", $$1, $$2, $$3) }')
|
CC_VER := $(shell $(CC) -dumpfullversion -dumpversion | awk -F. '{ printf("%02d%02d%02d", $$1, $$2, $$3) }')
|
||||||
else
|
else
|
||||||
CC_IS_CLANG=1
|
CC_IS_CLANG=1
|
||||||
ifeq '' '$(findstring Apple LLVM,$(shell $(CC) --version))'
|
ifeq '' '$(findstring Apple,$(shell $(CC) --version))'
|
||||||
CC_IS_LLVM_CLANG=1
|
CC_IS_LLVM_CLANG=1
|
||||||
else
|
else
|
||||||
CC_IS_APPLE_CLANG=1
|
CC_IS_APPLE_CLANG=1
|
||||||
|
Reference in New Issue
Block a user