diff options
author | Petr Hosek <phosek@chromium.org> | 2018-10-31 19:15:48 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-10-31 19:15:48 +0000 |
commit | 44eba12b74a8da5f40a40b71f0e4650d555d30ee (patch) | |
tree | a9443de9a13843faa85243887e6dad0079d5f62c | |
parent | 3a02722a40677c6ea39b9fe8624f439c417c282c (diff) | |
download | bcm5719-llvm-44eba12b74a8da5f40a40b71f0e4650d555d30ee.tar.gz bcm5719-llvm-44eba12b74a8da5f40a40b71f0e4650d555d30ee.zip |
[compiler-rt][Fuzzer] Use the new C++ ABI namespace CMake support
libc++ now supports customizing the ABI namespace directly from the
CMake build so we no longer need to rely on custom CFLAGS.
Differential Revision: https://reviews.llvm.org/D53939
llvm-svn: 345765
-rw-r--r-- | compiler-rt/lib/fuzzer/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt index aae3df8dbf8..8ba3f8a5a03 100644 --- a/compiler-rt/lib/fuzzer/CMakeLists.txt +++ b/compiler-rt/lib/fuzzer/CMakeLists.txt @@ -124,12 +124,12 @@ if(OS_NAME MATCHES "Linux|Fuchsia" AND COMPILER_RT_LIBCXX_PATH) set(LIBCXX_${arch}_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/libcxx_fuzzer_${arch}) add_custom_libcxx(libcxx_fuzzer_${arch} ${LIBCXX_${arch}_PREFIX} CFLAGS ${TARGET_CFLAGS} - -D_LIBCPP_ABI_VERSION=Fuzzer -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=1 -fvisibility=hidden CMAKE_ARGS -DCMAKE_CXX_COMPILER_WORKS=ON -DLIBCXX_ENABLE_EXCEPTIONS=OFF -DLIBCXX_ENABLE_SHARED=OFF + -DLIBCXX_ABI_NAMESPACE=Fuzzer -DLIBCXX_CXX_ABI=none) target_compile_options(RTfuzzer.${arch} PRIVATE -isystem ${LIBCXX_${arch}_PREFIX}/include/c++/v1) add_dependencies(RTfuzzer.${arch} libcxx_fuzzer_${arch}-build) |