mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 06:13:03 +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)
|
||||
message(STATUS "ASan enabled")
|
||||
set(SAN_FLAGS /fsanitize=address)
|
||||
add_compile_options(${SAN_FLAGS})
|
||||
add_link_options(${SAN_FLAGS})
|
||||
add_compile_options(/fsanitize=address) # Note that this shouldn't be passed to the linker.
|
||||
endif()
|
||||
else()
|
||||
add_compile_options(-Wall -pedantic -fno-exceptions -fno-rtti
|
||||
|
||||
Reference in New Issue
Block a user