aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-23 22:49:51 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:50 +0100
commit9e40106072be4783a39c3fec37e46922d57a6ee2 (patch)
treef3166e55ed38846fe028c52d38ed28eae35ca386 /CMakeLists.txt
parent894cef6e839785700250e7ffaf5c8892afecd394 (diff)
downloadlibnitrokey-9e40106072be4783a39c3fec37e46922d57a6ee2.tar.gz
libnitrokey-9e40106072be4783a39c3fec37e46922d57a6ee2.tar.bz2
Comment: use clang with TSAN
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ed907b..d0bc1f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,8 @@ IF (UNIX)
ENDIF()
IF(ADD_TSAN)
SET(EXTRA_LIBS ${EXTRA_LIBS} tsan )
- ADD_DEFINITIONS(-fsanitize=thread -fno-omit-frame-pointer -fPIE -pie -g)
+ SET(USE_CLANG TRUE)
+ ADD_DEFINITIONS(-fsanitize=thread -fno-omit-frame-pointer -fPIC -g) #use with clang
ENDIF()
IF(ADD_TSAN AND ADD_ASAN)
message(FATAL_ERROR "TSAN and ASAN cannot be used at the same time")