forked from OSchip/llvm-project
[LibFuzzer] [tests] [Darwin] Use the pthread library from the SDK
This commit is contained in:
parent
2799031a14
commit
7ed3286a51
|
@ -23,6 +23,10 @@ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -Wl,-defaultlib:libcmt,-defaultlib:oldnames)
|
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -Wl,-defaultlib:libcmt,-defaultlib:oldnames)
|
||||||
else()
|
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)
|
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lpthread)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue