[compiler-rt] r262723 - [ubsan/cmake] Make sure we end up adding -frtti to ubsan_type_hash_itanium.cc, even if -fno-rtti is the default for the platform
Filipe Cabecinhas via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 4 09:02:06 PST 2016
Author: filcab
Date: Fri Mar 4 11:02:06 2016
New Revision: 262723
URL: http://llvm.org/viewvc/llvm-project?rev=262723&view=rev
Log:
[ubsan/cmake] Make sure we end up adding -frtti to ubsan_type_hash_itanium.cc, even if -fno-rtti is the default for the platform
Modified:
compiler-rt/trunk/lib/ubsan/CMakeLists.txt
Modified: compiler-rt/trunk/lib/ubsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/CMakeLists.txt?rev=262723&r1=262722&r2=262723&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/ubsan/CMakeLists.txt Fri Mar 4 11:02:06 2016
@@ -31,6 +31,9 @@ append_list_if(SANITIZER_CAN_USE_CXXABI
set(UBSAN_CXXFLAGS ${SANITIZER_COMMON_CFLAGS})
append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_CXXFLAGS)
+# Make sure we end with -frtti on type_hash
+set_property(SOURCE ubsan_type_hash_itanium.cc APPEND_STRING PROPERTY
+ COMPILE_FLAGS " -frtti")
add_custom_target(ubsan)
More information about the llvm-commits
mailing list