llvm.org GIT mirror llvm / 3bf2279
Disable RTTI when building unit tests. This avoids errors at link time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123377 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 9 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1717
1818 include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
1919 add_definitions(-DGTEST_HAS_RTTI=0)
20 if( CMAKE_COMPILER_IS_GNUCXX )
21 llvm_replace_compiler_option(CMAKE_CXX_FLAGS "-frtti" "-fno-rtti")
22 elseif( MSVC )
23 llvm_replace_compiler_option(CMAKE_CXX_FLAGS "/GR" "/GR-")
24 endif()
25
2026 if (NOT LLVM_ENABLE_THREADS)
2127 add_definitions(-DGTEST_HAS_PTHREAD=0)
2228 endif()