aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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