summaryrefslogtreecommitdiff
path: root/test/tsan
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-05-14 15:48:49 +0000
committerDan Liew <dan@su-root.co.uk>2018-05-14 15:48:49 +0000
commit7bb5a5d2e5f6c07afefd5fde2d7f858663b3da08 (patch)
tree8133360fcd3a153c0d0131b79924ec6af1dce3a4 /test/tsan
parent504c4196afe17ab91d73b6a4b691c911c042908b (diff)
Fix another case where libstdc++ is being inappropriately requested (see
r328775) for all platforms. Given that this is the second occurance of this problem it seemed worth fixing this problem in a more generic way. r328775 has been reverted and now a substitution `%linux_static_libstdcplusplus` has been provided. This substitution expands to Clang driver arguments to use a static libstdc++ on Linux and on all other platforms it expands to nothing. The `asan/TestCases/throw_invoke_test.cc` and `test/tsan/static_init6.cc` test cases now use this substitution. rdar://problem/39948818 Differential Revision: https://reviews.llvm.org/D46401 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r--test/tsan/static_init6.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tsan/static_init6.cc b/test/tsan/static_init6.cc
index fd22e0a02..06215ced3 100644
--- a/test/tsan/static_init6.cc
+++ b/test/tsan/static_init6.cc
@@ -1,4 +1,5 @@
-// RUN: %clangxx_tsan -stdlib=libstdc++ -static-libstdc++ -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan %linux_static_libstdcplusplus -O1 %s -o %t && %run %t 2>&1 \
+// RUN: | FileCheck %s
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>