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)