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 <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-04-10 13:13:11 +02:00 committed by Alberto Escolar
parent 1fcc245eda
commit b59b21f8bb

View file

@ -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)