diff options
| author | Jonathan Metzman <metzman@chromium.org> | 2018-10-14 17:07:40 +0000 |
|---|---|---|
| committer | Jonathan Metzman <metzman@chromium.org> | 2018-10-14 17:07:40 +0000 |
| commit | 9d0f3206ce52ca76f3257a7d1cffaa38e6f1385f (patch) | |
| tree | 149e85b41dc75714ee05dc21c82771e29b646c97 /compiler-rt/lib/fuzzer/tests | |
| parent | 9afb1e66e55df33b374d585dd5054c350bcf5cb8 (diff) | |
| download | bcm5719-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.txt | 4 |
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() |

