llvm.org GIT mirror llvm / f0c55a9
Build with RTTI and exceptions disabled. Only in GCC for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116682 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 9 years ago
8 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3535 add_td_sources(sources)
3636 add_header_files(sources)
3737 endif()
38
39 # Set common compiler options:
40 if( NOT LLVM_REQUIRES_EH )
41 if( CMAKE_COMPILER_IS_GNUCXX )
42 add_definitions( -fno-exceptions )
43 endif()
44 endif()
45 if( NOT LLVM_REQUIRES_RTTI )
46 if( CMAKE_COMPILER_IS_GNUCXX )
47 add_definitions( -fno-rtti )
48 endif()
49 endif()
50
3851 set( ${OUT_VAR} ${sources} PARENT_SCOPE )
3952 endfunction(llvm_process_sources)
4053
0 set(LLVM_LINK_COMPONENTS jit nativecodegen)
1 set(LLVM_REQUIRES_EH 1)
12
23 add_llvm_example(ExceptionDemo
34 ExceptionDemo.cpp
0 set(LLVM_LINK_COMPONENTS core jit interpreter native)
1 set(LLVM_REQUIRES_RTTI 1)
12
23 add_llvm_example(Kaleidoscope-Ch7
34 toy.cpp
0 ## FIXME: This only requires RTTI because tblgen uses it. Fix that.
1 set(LLVM_REQUIRES_RTTI 1)
2
3 add_llvm_library(LLVMSupport
14 APFloat.cpp
25 APInt.cpp
0 set(LLVM_REQUIRES_RTTI 1)
1 if( MINGW )
2 set(LLVM_REQUIRES_EH 1)
3 endif()
4
5 add_llvm_library(LLVMSystem
16 Alarm.cpp
27 Atomic.cpp
0 set(LLVM_REQUIRES_RTTI 1)
1
2 add_llvm_library(LLVMCore
13 AsmWriter.cpp
24 Attributes.cpp
0 set(LLVM_REQUIRES_EH 1)
1 set(LLVM_REQUIRES_RTTI 1)
2
3 add_executable(tblgen
14 ARMDecoderEmitter.cpp
25 AsmMatcherEmitter.cpp
2323 add_definitions("-Wno-variadic-macros")
2424 endif()
2525
26 set(LLVM_REQUIRES_RTTI 1)
27 add_definitions( -DGTEST_HAS_RTTI=0 )
28 # libstdc++'s TR1 header depends on RTTI and uses C++'0x features not
29 # supported by Clang, so force googletest to use its own tuple implementation.
30 add_definitions( -DGTEST_USE_OWN_TR1_TUPLE )
31
2632 add_llvm_library(gtest
2733 googletest/gtest.cc
2834 googletest/gtest-death-test.cc