[LibFuzzer] [tests] [Darwin] Use the pthread library from the SDK

This commit is contained in:
Azharuddin Mohammed 2020-08-21 09:22:13 -07:00
parent 2799031a14
commit 7ed3286a51
1 changed files with 4 additions and 0 deletions

View File

@ -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()