mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build: Disable gcov on TSAN builds
It seems GCOV does not play well with TSAN as it reports false data races
This commit is contained in:
parent
7eaeed112e
commit
9ec240e03f
@ -79,7 +79,7 @@ matrix:
|
|||||||
env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=MSAN
|
env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=MSAN
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang-3.6
|
compiler: clang-3.6
|
||||||
env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=TSAN
|
env: CLANG_SANITIZER=TSAN
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: GCOV=gcov
|
env: GCOV=gcov
|
||||||
|
@ -2,12 +2,15 @@ include(CheckLibraryExists)
|
|||||||
|
|
||||||
option(USE_GCOV "Enable gcov support" OFF)
|
option(USE_GCOV "Enable gcov support" OFF)
|
||||||
|
|
||||||
|
if(NOT CLANG_TSAN)
|
||||||
|
# GCOV and TSAN results in false data race reports
|
||||||
if(USE_GCOV)
|
if(USE_GCOV)
|
||||||
message(STATUS "Enabling gcov support")
|
message(STATUS "Enabling gcov support")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --coverage")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(GENERATED_DIR ${PROJECT_BINARY_DIR}/src/nvim/auto)
|
set(GENERATED_DIR ${PROJECT_BINARY_DIR}/src/nvim/auto)
|
||||||
set(DISPATCH_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/msgpack-gen.lua)
|
set(DISPATCH_GENERATOR ${PROJECT_SOURCE_DIR}/scripts/msgpack-gen.lua)
|
||||||
|
Loading…
Reference in New Issue
Block a user