[Fuzzer] Avoid C++ compiler checks for fuzzer C++ library
When bulding libFuzzer as part of the toolchain, C++ library may not have been fully built yet so the C++ compiler checks will fail, but we don't care since we don't need C++ library anyway as we're building our own. Differential Revision: https://reviews.llvm.org/D45638 llvm-svn: 330075
This commit is contained in:
parent
15970af92a
commit
1ba8c8a2cc
|
@ -103,7 +103,8 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND COMPILER_RT_LIBCXX_PATH)
|
|||
-D_LIBCPP_ABI_VERSION=Fuzzer
|
||||
-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=1
|
||||
-fvisibility=hidden
|
||||
CMAKE_ARGS -DLIBCXX_ENABLE_EXCEPTIONS=OFF
|
||||
CMAKE_ARGS -DCMAKE_CXX_COMPILER_WORKS=ON
|
||||
-DLIBCXX_ENABLE_EXCEPTIONS=OFF
|
||||
-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)
|
||||
|
|
Loading…
Reference in New Issue