summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2014-03-06 12:03:39 +0000
committerDmitry Vyukov <dvyukov@google.com>2014-03-06 12:03:39 +0000
commit7bb80e4dd4f40476135da3e443333649ec9b9699 (patch)
tree6c89fa55a99e3153a1a5b1fba4e9737ac88c0a6b /lib
parentc860f913929bb72aea075966a3ebaafb2702dafa (diff)
tsan: add -ftls-model=initial-exec to deadlock detector flags
one way or another it must present in the process from the beginning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/tsan/dd/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tsan/dd/CMakeLists.txt b/lib/tsan/dd/CMakeLists.txt
index 305e26c07..da43f6621 100644
--- a/lib/tsan/dd/CMakeLists.txt
+++ b/lib/tsan/dd/CMakeLists.txt
@@ -4,6 +4,7 @@ include_directories(../..)
set(DD_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_no_rtti_flag(DD_CFLAGS)
+list(APPEND DD_CFLAGS -ftls-model=initial-exec)
if("${CMAKE_BUILD_TYPE}" EQUAL "Release")
set(DD_COMMON_DEFINITIONS DEBUG=0)