Skip to content

Commit

Permalink
[LibFuzzer] [tests] [Darwin] Use the pthread library from the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Azharuddin Mohammed committed Aug 21, 2020
1 parent 2799031 commit 7ed3286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-rt/lib/fuzzer/tests/CMakeLists.txt
Expand Up @@ -23,6 +23,10 @@ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
if(WIN32)
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -Wl,-defaultlib:libcmt,-defaultlib:oldnames)
else()
if (APPLE)
list(APPEND LIBFUZZER_UNITTEST_CFLAGS -isysroot ${DARWIN_osx_SYSROOT})
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -isysroot ${DARWIN_osx_SYSROOT})
endif()
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lpthread)
endif()

Expand Down

0 comments on commit 7ed3286

Please sign in to comment.