[compiler-rt] r344480 - [libfuzzer][Windows] Silence linker warning in unittest

Jonathan Metzman via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 14 10:07:40 PDT 2018


Author: metzman
Date: Sun Oct 14 10:07:40 2018
New Revision: 344480

URL: http://llvm.org/viewvc/llvm-project?rev=344480&view=rev
Log:
[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

Modified:
    compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt

Modified: compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt?rev=344480&r1=344479&r2=344480&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt Sun Oct 14 10:07:40 2018
@@ -17,9 +17,7 @@ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAG
 
 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()
 




More information about the llvm-commits mailing list