From 78206b93b4d8723987d6b6baec543ab6194221c8 Mon Sep 17 00:00:00 2001 From: Zhuo Zhang Date: Thu, 12 Dec 2024 20:29:26 +0800 Subject: [PATCH] fix: Add linker option to ignore MSVC incremental linking warnings for ASAN --- rocbuild.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/rocbuild.cmake b/rocbuild.cmake index d8c7113..1391782 100644 --- a/rocbuild.cmake +++ b/rocbuild.cmake @@ -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)