mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Don't compile fish_test_helper with thread sanitizer
Certain TSan versions will modify the blocked signal mask on startup, which breaks fish's test that it correctly blocks certain signals on nohup.
This commit is contained in:
parent
1d2dd3975a
commit
d129ee00a1
1 changed files with 9 additions and 0 deletions
|
@ -219,6 +219,15 @@ include(cmake/Install.cmake)
|
||||||
# Mac app.
|
# Mac app.
|
||||||
include(cmake/MacApp.cmake)
|
include(cmake/MacApp.cmake)
|
||||||
|
|
||||||
|
# ThreadSanitizer likes to muck with signal handlers, which interferes
|
||||||
|
# with fish_test_helper printing the ignored signal mask.
|
||||||
|
# Ensure fish_test_helper does not use TSan.
|
||||||
|
# Note the environment var is CXXFLAGS, but the CMake var is CMAKE_CXX_FLAGS.
|
||||||
|
if (CMAKE_CXX_FLAGS MATCHES ".*-fsanitize=thread.*")
|
||||||
|
target_compile_options(fish_test_helper PRIVATE "-fno-sanitize=all")
|
||||||
|
target_link_libraries(fish_test_helper "-fno-sanitize=all")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Lint targets
|
# Lint targets
|
||||||
# This could be implemented as target properties, but the script has the useful feature of only
|
# This could be implemented as target properties, but the script has the useful feature of only
|
||||||
# checking the currently-staged commands
|
# checking the currently-staged commands
|
||||||
|
|
Loading…
Reference in a new issue