Add llvm-config version 11 check for Darwin in Makefile

This commit is contained in:
gingerBill
2021-05-11 12:31:56 +01:00
parent e1c2528d87
commit d0f7cf74e9
+5
View File
@@ -9,6 +9,11 @@ OS=$(shell uname)
ifeq ($(OS), Darwin) ifeq ($(OS), Darwin)
LLVM_CONFIG=llvm-config LLVM_CONFIG=llvm-config
ifneq ($(shell llvm-config --version | grep '^11\.'),)
LLVM_CONFIG=llvm-config
else
$(error "Requirement: llvm-config must be version 11")
endif
LDFLAGS:=$(LDFLAGS) -liconv LDFLAGS:=$(LDFLAGS) -liconv
CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags) CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)