[compiler-rt] r362758 - Change GWP-ASan build to use '-pthread' instead of '-lpthread' in order

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 16:43:25 PDT 2019


Author: hctim
Date: Thu Jun  6 16:43:25 2019
New Revision: 362758

URL: http://llvm.org/viewvc/llvm-project?rev=362758&view=rev
Log:
Change GWP-ASan build to use '-pthread' instead of '-lpthread' in order
to try and fix android buildbot. Also make sure that the empty dummy
test contains an output file name so the android_build.py wrapper script
doesn't check fail.

Modified:
    compiler-rt/trunk/lib/gwp_asan/tests/CMakeLists.txt
    compiler-rt/trunk/test/gwp_asan/dummy_test.cc

Modified: compiler-rt/trunk/lib/gwp_asan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/gwp_asan/tests/CMakeLists.txt?rev=362758&r1=362757&r2=362758&view=diff
==============================================================================
--- compiler-rt/trunk/lib/gwp_asan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/gwp_asan/tests/CMakeLists.txt Thu Jun  6 16:43:25 2019
@@ -18,7 +18,7 @@ set_target_properties(GwpAsanUnitTests P
 set(GWP_ASAN_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
 list(APPEND GWP_ASAN_UNITTEST_LINK_FLAGS --driver-mode=g++)
 if(NOT WIN32)
-  list(APPEND GWP_ASAN_UNITTEST_LINK_FLAGS -lpthread)
+  list(APPEND GWP_ASAN_UNITTEST_LINK_FLAGS -pthread)
 endif()
 
 if(COMPILER_RT_DEFAULT_TARGET_ARCH IN_LIST GWP_ASAN_SUPPORTED_ARCH)

Modified: compiler-rt/trunk/test/gwp_asan/dummy_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/gwp_asan/dummy_test.cc?rev=362758&r1=362757&r2=362758&view=diff
==============================================================================
--- compiler-rt/trunk/test/gwp_asan/dummy_test.cc (original)
+++ compiler-rt/trunk/test/gwp_asan/dummy_test.cc Thu Jun  6 16:43:25 2019
@@ -1,4 +1,4 @@
 // Exists to simply stop warnings about lit not discovering any tests here.
-// RUN: %clang %s
+// RUN: %clang %s -o %s.o
 
 int main() { return 0; }




More information about the llvm-commits mailing list