mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +00:00
Address sanitizer options
This commit is contained in:
parent
a88cd27d8b
commit
67f74d9ede
3 changed files with 25 additions and 0 deletions
|
|
@ -265,3 +265,11 @@ endif()
|
|||
set_target_properties(wxdata PROPERTIES CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
CXX_EXTENSIONS OFF)
|
||||
|
||||
# Address Sanitizer options
|
||||
if (SCWX_ADDRESS_SANITIZER)
|
||||
target_compile_options(wxdata PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/fsanitize=address>
|
||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fsanitize=address -fsanitize-recover=address>
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue