[CMake] Cache LLVM_ABI_BREAKING_CHECKS in LLVMConfig.cmake.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 1 Apr 2015 03:16:10 +0000 (03:16 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 1 Apr 2015 03:16:10 +0000 (03:16 +0000)
Not having this breaks clang builds that use an already-built LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233784 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/LLVMConfig.cmake.in

index 9a9cd8544278d138f1746ea2b558d29c53ace94d..6517cdd19c6cf99c2ca78bd0304c5935ac94241a 100644 (file)
@@ -23,6 +23,8 @@ set(TARGET_TRIPLE "@TARGET_TRIPLE@")
 
 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
 
+set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
+
 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
 
 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)