Skip to content

Commit

Permalink
fix: Add linker option to ignore MSVC incremental linking warnings fo…
Browse files Browse the repository at this point in the history
…r ASAN
  • Loading branch information
zchrissirhcz committed Dec 12, 2024
1 parent a1bd168 commit 78206b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rocbuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ endfunction()
function(rocbuild_enable_asan TARGET)
if(MSVC)
target_compile_options(${TARGET} PUBLIC /fsanitize=address)
target_link_options(${TARGET} PUBLIC /ignore:4300) # /INCREMENTAL
else()
target_compile_options(${TARGET} PUBLIC -fsanitize=address -fno-omit-frame-pointer -g)
target_link_options(${TARGET} PUBLIC -fsanitize=address)
Expand Down

0 comments on commit 78206b9

Please sign in to comment.