diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-03-04 17:02:06 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-03-04 17:02:06 +0000 |
commit | 0fa2119172749af01eb2d3e66ede43ebe583a34d (patch) | |
tree | 100f325ed51a6c8f2cd8e6f7d778ed535b26afc7 /lib/ubsan | |
parent | 5c5818a150d76f01ba6d4d2a629c2568e87b6ce8 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan')
-rw-r--r-- | lib/ubsan/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ubsan/CMakeLists.txt b/lib/ubsan/CMakeLists.txt index a12b8b117..de477fd2d 100644 --- a/lib/ubsan/CMakeLists.txt +++ b/lib/ubsan/CMakeLists.txt @@ -31,6 +31,9 @@ append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_STANDALONE_ 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) |