From b59b21f8bbafc2e3b47ed45c82d521d190789a8d Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 10 Apr 2024 13:13:11 +0200 Subject: [PATCH] arch posix: pass -fsanitize-recover=all also to native_simulator build If the CONFIG_ASAN_RECOVER option is set, also pass -fsanitize-recover=all to the build of the native simulator built files. Signed-off-by: Alberto Escolar Piedras --- arch/posix/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/posix/CMakeLists.txt b/arch/posix/CMakeLists.txt index 478e29cac1e..469e1876a08 100644 --- a/arch/posix/CMakeLists.txt +++ b/arch/posix/CMakeLists.txt @@ -171,6 +171,7 @@ endif() if(CONFIG_ASAN_RECOVER) zephyr_compile_options(-fsanitize-recover=all) + target_compile_options(native_simulator INTERFACE "-fsanitize-recover=all") endif() if(CONFIG_ARCH_POSIX_LIBFUZZER)