mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Added tsan to ci
This commit is contained in:
parent
dfc86ddcf5
commit
248358f318
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
- { compiler: gcc, version: 11, build_type: Debug, cppstd: 20 }
|
||||
- { compiler: gcc, version: 12, build_type: Release, cppstd: 20 }
|
||||
- { compiler: clang, version: 12, build_type: Debug, cppstd: 17 }
|
||||
- { compiler: clang, version: 15, build_type: Debug, cppstd: 20, asan: ON }
|
||||
- { compiler: gcc, version: 15, build_type: Debug, cppstd: 20, asan: ON }
|
||||
- { compiler: clang, version: 15, build_type: Release, cppstd: 20, tsan: ON }
|
||||
container:
|
||||
image: ${{ matrix.config.compiler == 'clang' && 'teeks99/clang-ubuntu' || matrix.config.compiler }}:${{ matrix.config.version }}
|
||||
|
@ -69,5 +69,5 @@ function(spdlog_enable_thread_sanitizer target_name)
|
||||
message(STATUS "Thread sanitizer enabled")
|
||||
target_compile_options(${target_name} PRIVATE -fsanitize=thread)
|
||||
target_compile_options(${target_name} PRIVATE -fno-omit-frame-pointer)
|
||||
target_link_libraries(${target_name} PRIVATE -fsanitize=thread -fuse-ld=gold)
|
||||
target_link_libraries(${target_name} PRIVATE -fsanitize=thread)
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user