summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/tests
diff options
context:
space:
mode:
authorJonathan Metzman <metzman@chromium.org>2018-10-14 17:07:40 +0000
committerJonathan Metzman <metzman@chromium.org>2018-10-14 17:07:40 +0000
commit9d0f3206ce52ca76f3257a7d1cffaa38e6f1385f (patch)
tree149e85b41dc75714ee05dc21c82771e29b646c97 /compiler-rt/lib/fuzzer/tests
parent9afb1e66e55df33b374d585dd5054c350bcf5cb8 (diff)
downloadbcm5719-llvm-9d0f3206ce52ca76f3257a7d1cffaa38e6f1385f.tar.gz
bcm5719-llvm-9d0f3206ce52ca76f3257a7d1cffaa38e6f1385f.zip
[libfuzzer][Windows] Silence linker warning in unittest
Summary: Silence warning when linking unittest binary by not passing -lstdc++ to the linker since it is ignored. Reviewers: morehouse Reviewed By: morehouse Subscribers: mgorny Differential Revision: https://reviews.llvm.org/D53225 llvm-svn: 344480
Diffstat (limited to 'compiler-rt/lib/fuzzer/tests')
-rw-r--r--compiler-rt/lib/fuzzer/tests/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
index 0b561c170ec..cf1a68e9eaa 100644
--- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -17,9 +17,7 @@ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
if(APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lc++ -lpthread)
-elseif(WIN32)
- list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lstdc++)
-else()
+elseif(NOT WIN32)
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lstdc++ -lpthread)
endif()
OpenPOWER on IntegriCloud