diff options
| author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-02-01 13:57:24 +0000 | 
|---|---|---|
| committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2018-02-01 13:57:24 +0000 | 
| commit | 44ef345c5093fd5f560594d7a2c5f8570b5749ec (patch) | |
| tree | 66d25ba21093390519f51dbe4e48787b0cf4afb9 /compiler-rt/lib/fuzzer | |
| parent | 9d9a86535e9949a04352ac51e4cc5a933fb73a72 (diff) | |
| download | bcm5719-llvm-44ef345c5093fd5f560594d7a2c5f8570b5749ec.tar.gz bcm5719-llvm-44ef345c5093fd5f560594d7a2c5f8570b5749ec.zip  | |
[CMake] Remove -stdlib= which is unused when passing -nostdinc++
This avoids the warnings when building with LLVM_ENABLE_LIBCXX
which automatically adds -stdlib=libc++ to CMAKE_CXX_FLAGS.
Differential Revision: https://reviews.llvm.org/D42238
llvm-svn: 323969
Diffstat (limited to 'compiler-rt/lib/fuzzer')
| -rw-r--r-- | compiler-rt/lib/fuzzer/CMakeLists.txt | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt index 1815d7cc4a6..3cc941be0f6 100644 --- a/compiler-rt/lib/fuzzer/CMakeLists.txt +++ b/compiler-rt/lib/fuzzer/CMakeLists.txt @@ -35,6 +35,8 @@ set(LIBFUZZER_CFLAGS ${SANITIZER_COMMON_CFLAGS})  if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND COMPILER_RT_LIBCXX_PATH)    list(APPEND LIBFUZZER_CFLAGS -nostdinc++ -D_LIBCPP_ABI_VERSION=Fuzzer) +  # Remove -stdlib= which is unused when passing -nostdinc++. +  string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})  endif()  append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer LIBFUZZER_CFLAGS)  | 

