[compiler-rt] afafa88 - [sanitizer] Fix test linking

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 16:53:08 PST 2021


Author: Vitaly Buka
Date: 2021-11-12T16:52:58-08:00
New Revision: afafa883a4757d88d869d1abb6bf7e11022fd521

URL: https://github.com/llvm/llvm-project/commit/afafa883a4757d88d869d1abb6bf7e11022fd521
DIFF: https://github.com/llvm/llvm-project/commit/afafa883a4757d88d869d1abb6bf7e11022fd521.diff

LOG: [sanitizer] Fix test linking

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp
index 610958143b47..2882942964cb 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_mutex.cpp
@@ -1,5 +1,5 @@
-// RUN: %clangxx -O1 %s -o %t && %run %t
-// RUN: %clangxx -O1 -DUSE_GLIBC %s -o %t && %run %t
+// RUN: %clangxx -O1 -pthread %s -o %t && %run %t
+// RUN: %clangxx -O1 -pthread -DUSE_GLIBC %s -o %t && %run %t
 // UNSUPPORTED: android
 
 #include <pthread.h>


        


More information about the llvm-commits mailing list