[XRay][compiler-rt] Explicitly add dependency to pthread
authorDean Michael Berris <dberris@google.com>
Tue, 6 Dec 2016 23:08:45 +0000 (23:08 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 6 Dec 2016 23:08:45 +0000 (23:08 +0000)
This should fix the sanitizer bootstrap builds.

Follow-up to D26232.

llvm-svn: 288860

compiler-rt/lib/xray/tests/CMakeLists.txt

index 72bfb91..6cb1793 100644 (file)
@@ -46,6 +46,7 @@ macro(add_xray_unittest testname)
           DEPS ${TEST_DEPS}
           LINK_FLAGS ${TARGET_LINK_FLAGS}
           -lstdc++ -lm ${CMAKE_THREAD_LIBS_INIT}
+          -lpthread
           -L${COMPILER_RT_LIBRARY_OUTPUT_DIR} -lclang_rt.xray-fdr-${arch})
       endif()
       # FIXME: Figure out how to run even just the unit tests on APPLE.