diff options
| author | Petr Hosek <phosek@chromium.org> | 2018-01-20 09:03:16 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2018-01-20 09:03:16 +0000 |
| commit | 94e67be18729f462976bacbc6dcd559c8bb99e41 (patch) | |
| tree | b2caa019561494d6f5ea0931dda971a96a923bf1 /compiler-rt/lib/fuzzer/tests/CMakeLists.txt | |
| parent | a6c6d65b724e0696550f217306ea1d8e5fc5f4f8 (diff) | |
| download | bcm5719-llvm-94e67be18729f462976bacbc6dcd559c8bb99e41.tar.gz bcm5719-llvm-94e67be18729f462976bacbc6dcd559c8bb99e41.zip | |
[Fuzzer] Parametrize add_custom_libcxx
add_custom_libcxx uses the just built compiler and installs the
built libc++, e.g. for testing, neither of which is desirable in
case of Fuzzer where the libc++ should be built using the host
compiler and it's only linked into the libFuzzer and should never
be installed. This change introduces additional arguments to
add_custom_libcxx to allow parametrizing its behavior.
Differential Revision: https://reviews.llvm.org/D42330
llvm-svn: 323032
Diffstat (limited to 'compiler-rt/lib/fuzzer/tests/CMakeLists.txt')
| -rw-r--r-- | compiler-rt/lib/fuzzer/tests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt index 752b189cf3c..d50c08af4df 100644 --- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt +++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt @@ -39,8 +39,8 @@ foreach(arch ${FUZZER_SUPPORTED_ARCH}) if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND COMPILER_RT_LIBCXX_PATH) set(LIBFUZZER_TEST_RUNTIME_DEPS libcxx_fuzzer_${arch}) - set(LIBFUZZER_TEST_RUNTIME_CFLAGS -isystem ${LIBCXX_${arch}_PREFIX}/include/c++/v1) - set(LIBFUZZER_TEST_RUNTIME_LINK_FLAGS ${LIBCXX_${arch}_PREFIX}/lib/libc++.a) + set(LIBFUZZER_TEST_RUNTIME_CFLAGS -isystem ${COMPILER_RT_LIBCXX_PATH}/include) + set(LIBFUZZER_TEST_RUNTIME_LINK_FLAGS ${LIBCXX_${arch}_PREFIX}/src/libcxx_fuzzer_${arch}-build/libc++.a) endif() set(FuzzerTestObjects) |

