llvm.org GIT mirror llvm / 5b644fc
Merging r213664: ------------------------------------------------------------------------ r213664 | delcypher | 2014-07-22 16:41:33 +0100 (Tue, 22 Jul 2014) | 3 lines Export LLVM_ENABLE_RTTI and LLVM_ENABLE_EH in LLVMConfig.cmake so clients of LLVM know if RTTI and/or EH were enabled in the build of LLVM they are trying to link against. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@213765 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Liew 5 years ago
2 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2222
2323 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
2424
25 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
26
27 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
28
2529 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
2630
2731 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
2020 LLVM_ENABLE_ASSERTIONS := 1
2121 endif
2222
23 ifeq ($(REQUIRES_EH),1)
24 LLVM_ENABLE_EH := 1
25 else
26 LLVM_ENABLE_EH := 0
27 endif
28
29 ifeq ($(REQUIRES_RTTI),1)
30 LLVM_ENABLE_RTTI := 1
31 else
32 LLVM_ENABLE_RTTI := 0
33 endif
34
2335 OBJMODS := LLVMConfig.cmake LLVMConfigVersion.cmake LLVMExports.cmake
2436
2537 $(PROJ_OBJ_DIR)/LLVMConfig.cmake: LLVMConfig.cmake.in $(LLVMBuildCMakeFrag)
3850 -e 's/@LLVM_TARGETS_WITH_JIT@/'"$(TARGETS_WITH_JIT)"'/' \
3951 -e 's/@TARGET_TRIPLE@/'"$(TARGET_TRIPLE)"'/' \
4052 -e 's/@LLVM_ENABLE_ASSERTIONS@/'"$(LLVM_ENABLE_ASSERTIONS)"'/' \
53 -e 's/@LLVM_ENABLE_EH@/'"$(LLVM_ENABLE_EH)"'/' \
54 -e 's/@LLVM_ENABLE_RTTI@/'"$(LLVM_ENABLE_RTTI)"'/' \
4155 -e 's/@LLVM_ENABLE_TERMINFO@/'"$(ENABLE_TERMINFO)"'/' \
4256 -e 's/@LLVM_ENABLE_THREADS@/'"$(ENABLE_THREADS)"'/' \
4357 -e 's/@LLVM_ENABLE_ZLIB@/'"$(ENABLE_ZLIB)"'/' \