build: add compiler, reflection, and sanitizer capability probes (X-BASE-04)
This commit is contained in:
1 parent
cd6fc7e5f5
commit
c64fa93373
3 files changed
+120
No files matched your search
@@ -192,6 +192,15 @@ function(void_add_module MODULE_NAME)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VOID_ENABLE_TSAN)
|
||||
target_compile_options(${TGT} PUBLIC
|
||||
"$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-fsanitize=thread>"
|
||||
)
|
||||
target_link_options(${TGT} PUBLIC
|
||||
"$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-fsanitize=thread>"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VOID_ENABLE_COVERAGE)
|
||||
target_compile_options(${TGT} PUBLIC
|
||||
"$<$<CXX_COMPILER_ID:GNU>:--coverage;-fprofile-update=atomic>"
|
||||
|
||||
Reference in new issue
Block a user