mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added sanitization fix for MinGW (#684)
This commit is contained in:
parent
b591ef9184
commit
49f63cd789
@ -323,16 +323,24 @@ target_link_libraries(etl_tests PRIVATE UnitTestpp)
|
||||
if ((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||
target_compile_options(etl_tests
|
||||
PRIVATE
|
||||
-fsanitize=address,undefined,bounds
|
||||
-fno-omit-frame-pointer
|
||||
-Wall
|
||||
-Wextra
|
||||
-Werror
|
||||
)
|
||||
target_link_options(etl_tests
|
||||
|
||||
# MinGW doesn't presently support sanitization
|
||||
if (NOT MINGW)
|
||||
target_compile_options(etl_tests
|
||||
PRIVATE
|
||||
-fsanitize=address,undefined,bounds
|
||||
)
|
||||
|
||||
target_link_options(etl_tests
|
||||
PRIVATE
|
||||
-fsanitize=address,undefined,bounds
|
||||
)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
# Enable the 'make test' CMake target using the executable defined above
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user