diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-28 16:07:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-28 16:07:46 +0100 |
| commit | d5844dfd2aaa47de24e695ea3ecfd3ea05c9043a (patch) | |
| tree | c05eb3af383ff08b409382c3dc3e0e8f467d1706 /Makefile | |
| parent | 375132252122e899b365859961a95fc8c1c06e63 (diff) | |
Update `llvm-config` checking on Linux
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -15,7 +15,15 @@ ifeq ($(OS), Darwin) LDFLAGS:=$(LDFLAGS) -lLLVM-C endif ifeq ($(OS), Linux) - LLVM_CONFIG=llvm-config-11 + ifneq ($(shell command -v llvm-config-11),) + LLVM_CONFIG=llvm-config-11 + else + ifneq ($(shell llvm-config --version | grep 11),) + LLVM_CONFIG=llvm-config + else + $(error "Requirement: llvm-config must be version 11") + endif + endif CFLAGS:=$(CFLAGS) $(shell $(LLVM_CONFIG) --cxxflags --ldflags) LDFLAGS:=$(LDFLAGS) $(shell $(LLVM_CONFIG) --libs core native --system-libs) |