aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-06 17:41:04 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-09-06 08:41:04 -0700
commitfecbafb29e19d49ab48f98382b2750f0265a0947 (patch)
tree8bc60517a8a10de96ad1df093be68077886c59e6 /src
parent8b06231612cd608b2dce5e0a09bf40192a4803cb (diff)
downloadrneovim-fecbafb29e19d49ab48f98382b2750f0265a0947.tar.gz
rneovim-fecbafb29e19d49ab48f98382b2750f0265a0947.tar.bz2
rneovim-fecbafb29e19d49ab48f98382b2750f0265a0947.zip
build: fail with CLANG_TSAN + USE_GCOV #10958
This is better than skipping it silently.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 06957dd77d..39240823f6 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -1,15 +1,16 @@
option(USE_GCOV "Enable gcov support" OFF)
-if(NOT CLANG_TSAN)
-# GCOV and TSAN results in false data race reports
if(USE_GCOV)
+ if(CLANG_TSAN)
+ # GCOV and TSAN results in false data race reports
+ message(FATAL_ERROR "USE_GCOV cannot be used with CLANG_TSAN")
+ endif()
message(STATUS "Enabling gcov support")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
add_definitions(-DUSE_GCOV)
endif()
-endif()
if(WIN32)
# tell MinGW compiler to enable wmain