Merge pull request #1605 from colrdavidson/linux_build

Make llvm-config build more general for linux
This commit is contained in:
gingerBill
2022-03-14 11:39:03 +00:00
committed by GitHub
3 changed files with 146 additions and 6 deletions
+3 -3
View File
@@ -30,10 +30,10 @@ ifeq ($(OS), Darwin)
ifeq ($(shell $(LLVM_CONFIG) --version | grep -E $(LLVM_VERSION_PATTERN)),)
ifeq ($(ARCH), arm64)
$(error "Requirement: llvm-config must be base version 13 for arm64")
else
else
$(error "Requirement: llvm-config must be base version greater than 11 for amd64/x86")
endif
endif
endif
endif
LDFLAGS:=$(LDFLAGS) -liconv -ldl
CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags)