diff options
author | Petr Hosek <phosek@chromium.org> | 2017-07-26 01:43:02 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-07-26 01:43:02 +0000 |
commit | c2c3d6b87ba929d457ed50ea8e4caae081d13eae (patch) | |
tree | 3d963ce4a48531759c189c95f036fcbd182f3478 /compiler-rt/lib/ubsan | |
parent | c54b6c881b82faed035c75d9d339a3c2d42d7eba (diff) | |
download | bcm5719-llvm-c2c3d6b87ba929d457ed50ea8e4caae081d13eae.tar.gz bcm5719-llvm-c2c3d6b87ba929d457ed50ea8e4caae081d13eae.zip |
[sanitizer] Support libc++abi in addition to libstdc++
This change adds sanitizer support for LLVM's libunwind and libc++abi
as an alternative to libstdc++. This allows using the in tree version
of libunwind and libc++abi which is useful when building a toolchain
for different target.
Differential Revision: https://reviews.llvm.org/D34501
llvm-svn: 309074
Diffstat (limited to 'compiler-rt/lib/ubsan')
-rw-r--r-- | compiler-rt/lib/ubsan/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/ubsan/CMakeLists.txt b/compiler-rt/lib/ubsan/CMakeLists.txt index ab0e780735b..780072e2d04 100644 --- a/compiler-rt/lib/ubsan/CMakeLists.txt +++ b/compiler-rt/lib/ubsan/CMakeLists.txt @@ -39,7 +39,8 @@ set(UBSAN_DYNAMIC_LIBS ${SANITIZER_COMMON_LINK_LIBS}) append_list_if(COMPILER_RT_HAS_LIBDL dl UBSAN_DYNAMIC_LIBS) append_list_if(COMPILER_RT_HAS_LIBRT rt UBSAN_DYNAMIC_LIBS) append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread UBSAN_DYNAMIC_LIBS) -append_list_if(COMPILER_RT_HAS_LIBSTDCXX stdc++ UBSAN_DYNAMIC_LIBS) + +list(APPEND UBSAN_DYNAMIC_LIBS ${SANITIZER_CXX_ABI_LIBRARY}) add_compiler_rt_component(ubsan) |