mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-26 06:43:02 +00:00
Avoid passing sanitizer options to MSVC linker
Apparently it does not support them
This commit is contained in:
@@ -45,9 +45,7 @@ if(MSVC)
|
|||||||
|
|
||||||
if(SANITIZERS)
|
if(SANITIZERS)
|
||||||
message(STATUS "ASan enabled")
|
message(STATUS "ASan enabled")
|
||||||
set(SAN_FLAGS /fsanitize=address)
|
add_compile_options(/fsanitize=address) # Note that this shouldn't be passed to the linker.
|
||||||
add_compile_options(${SAN_FLAGS})
|
|
||||||
add_link_options(${SAN_FLAGS})
|
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
add_compile_options(-Wall -pedantic -fno-exceptions -fno-rtti
|
add_compile_options(-Wall -pedantic -fno-exceptions -fno-rtti
|
||||||
|
|||||||
Reference in New Issue
Block a user