|
@@ -802,12 +802,13 @@ ifdef LIBCLANGLLVM
|
|
msg := $(warning No g++ found, disable clang and llvm support. Please install g++)
|
|
msg := $(warning No g++ found, disable clang and llvm support. Please install g++)
|
|
else
|
|
else
|
|
$(call feature_check,llvm)
|
|
$(call feature_check,llvm)
|
|
|
|
+ $(call feature_check,llvm-version)
|
|
ifneq ($(feature-llvm), 1)
|
|
ifneq ($(feature-llvm), 1)
|
|
- msg := $(warning No libLLVM found, disable clang and llvm support. Please install llvm-dev)
|
|
|
|
|
|
+ msg := $(warning No suitable libLLVM found, disabling builtin clang and LLVM support. Please install llvm-dev(el) (>= 3.9.0))
|
|
else
|
|
else
|
|
$(call feature_check,clang)
|
|
$(call feature_check,clang)
|
|
ifneq ($(feature-clang), 1)
|
|
ifneq ($(feature-clang), 1)
|
|
- msg := $(warning No libclang found, disable clang and llvm support. Please install libclang-dev)
|
|
|
|
|
|
+ msg := $(warning No suitable libclang found, disabling builtin clang and LLVM support. Please install libclang-dev(el) (>= 3.9.0))
|
|
else
|
|
else
|
|
CFLAGS += -DHAVE_LIBCLANGLLVM_SUPPORT
|
|
CFLAGS += -DHAVE_LIBCLANGLLVM_SUPPORT
|
|
CXXFLAGS += -DHAVE_LIBCLANGLLVM_SUPPORT -I$(shell $(LLVM_CONFIG) --includedir)
|
|
CXXFLAGS += -DHAVE_LIBCLANGLLVM_SUPPORT -I$(shell $(LLVM_CONFIG) --includedir)
|
|
@@ -816,6 +817,9 @@ ifdef LIBCLANGLLVM
|
|
USE_CXX = 1
|
|
USE_CXX = 1
|
|
USE_LLVM = 1
|
|
USE_LLVM = 1
|
|
USE_CLANG = 1
|
|
USE_CLANG = 1
|
|
|
|
+ ifneq ($(feature-llvm-version),1)
|
|
|
|
+ msg := $(warning This version of LLVM is not tested. May cause build errors)
|
|
|
|
+ endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|