[PATCH] D42238: [CMake] Remove -stdlib= which is unused when passing -nostdinc++
Jonas Hahnfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 06:00:10 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323969: [CMake] Remove -stdlib= which is unused when passing -nostdinc++ (authored by Hahnfeld, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D42238?vs=130802&id=132374#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42238
Files:
compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
Index: compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
+++ compiler-rt/trunk/lib/msan/tests/CMakeLists.txt
@@ -37,6 +37,9 @@
-Werror=sign-compare
-Wno-gnu-zero-variadic-macro-arguments
)
+# Remove -stdlib= which is unused when passing -nostdinc++.
+string(REGEX REPLACE "-stdlib=[a-zA-Z+]*" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+
set(MSAN_UNITTEST_INSTRUMENTED_CFLAGS
${MSAN_UNITTEST_COMMON_CFLAGS}
-fsanitize=memory
Index: compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
+++ compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
@@ -35,6 +35,8 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42238.132374.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180201/693a0e85/attachment.bin>
More information about the llvm-commits
mailing list