summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2017-02-14 15:21:53 +0000
committerEtienne Bergeron <etienneb@google.com>2017-02-14 15:21:53 +0000
commit60ce0f667cac0b334ff26d12bfc0caaf787b0803 (patch)
treeb2ed3e9a9a66a5bdf3c229025e94afa50b96d2dd
parent2a2f35d59c135234242a587c5fcf434c4d664572 (diff)
downloadbcm5719-llvm-60ce0f667cac0b334ff26d12bfc0caaf787b0803.tar.gz
bcm5719-llvm-60ce0f667cac0b334ff26d12bfc0caaf787b0803.zip
[compiler-rt][asan|win] Force tls_init test to use dynamic runtime
Summary: There is no guarantee that the tls_init is executed on the static runtime (/MT). On windows 7, this unittest is failing. On windows 10, I believe it's working because of the new CRT. On ASAN side, it doesn't matter that the hook point is run or not. It must be run only if there is other tls_initializer that are registered. Reviewers: rnk, chrisha Reviewed By: rnk Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D29838 llvm-svn: 295057
-rw-r--r--compiler-rt/test/asan/TestCases/Windows/tls_init.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Windows/tls_init.cc b/compiler-rt/test/asan/TestCases/Windows/tls_init.cc
index c29c4a37783..a8569f8025c 100644
--- a/compiler-rt/test/asan/TestCases/Windows/tls_init.cc
+++ b/compiler-rt/test/asan/TestCases/Windows/tls_init.cc
@@ -1,4 +1,4 @@
-// RUN: %clang_cl_asan %s -Fe%t.exe
+// RUN: %clang_cl_asan %s -Fe%t.exe /MD
// RUN: %run %t.exe | FileCheck %s
// CHECK: my_thread_callback
OpenPOWER on IntegriCloud