aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/Makefile')
-rw-r--r--cmake/modules/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/Makefile b/cmake/modules/Makefile
index e38f5a6..97ee7d3 100644
--- a/cmake/modules/Makefile
+++ b/cmake/modules/Makefile
@@ -21,6 +21,12 @@ else
LLVM_ENABLE_ASSERTIONS := 1
endif
+ifeq ($(ENABLE_ABI_BREAKING_CHECKS),1)
+ LLVM_ABI_BREAKING_CHECKS := FORCE_ON
+else
+ LLVM_ABI_BREAKING_CHECKS := FORCE_OFF
+endif
+
ifeq ($(REQUIRES_EH),1)
LLVM_ENABLE_EH := 1
else
@@ -63,6 +69,7 @@ $(PROJ_OBJ_DIR)/LLVMConfig.cmake: LLVMConfig.cmake.in Makefile $(LLVMBuildCMakeF
-e 's/@LLVM_TARGETS_TO_BUILD@/'"$(TARGETS_TO_BUILD)"'/' \
-e 's/@LLVM_TARGETS_WITH_JIT@/'"$(TARGETS_WITH_JIT)"'/' \
-e 's/@TARGET_TRIPLE@/'"$(TARGET_TRIPLE)"'/' \
+ -e 's/@LLVM_ABI_BREAKING_CHECKS@/'"$(LLVM_ABI_BREAKING_CHECKS)"'/' \
-e 's/@LLVM_ENABLE_ASSERTIONS@/'"$(LLVM_ENABLE_ASSERTIONS)"'/' \
-e 's/@LLVM_ENABLE_EH@/'"$(LLVM_ENABLE_EH)"'/' \
-e 's/@LLVM_ENABLE_RTTI@/'"$(LLVM_ENABLE_RTTI)"'/' \