diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-11 14:18:54 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-11-23 20:29:51 -0500 |
commit | b6a090b4fd5d611df9cbc5cf66b3474c1d050750 (patch) | |
tree | 8920725fd3f20320cd7df05e6518183d2e8b1079 /src | |
parent | a46fc0d7540316eedd454a344e66cb79bc1c1eed (diff) | |
download | rneovim-b6a090b4fd5d611df9cbc5cf66b3474c1d050750.tar.gz rneovim-b6a090b4fd5d611df9cbc5cf66b3474c1d050750.tar.bz2 rneovim-b6a090b4fd5d611df9cbc5cf66b3474c1d050750.zip |
tsan: Compile with -fPIE and force clang-3.8
This fixes failures with TSAN builds like
FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x55deea465000 < 0x7cf000000000)
FATAL: Make sure to compile with -fPIE and to link with -pie.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 49edfda838..f2b75dca2a 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -326,6 +326,7 @@ elseif(CLANG_TSAN) message(STATUS "Enabling Clang thread sanitizer for nvim.") set_property(TARGET nvim APPEND_STRING PROPERTY COMPILE_FLAGS "-DEXITFREE ") set_property(TARGET nvim APPEND_STRING PROPERTY COMPILE_FLAGS "-fsanitize=thread ") + set_property(TARGET nvim APPEND_STRING PROPERTY COMPILE_FLAGS "-fPIE ") set_property(TARGET nvim APPEND_STRING PROPERTY LINK_FLAGS "-fsanitize=thread ") endif() |