diff --git a/samples/subsys/audio/sof/prj.conf b/samples/subsys/audio/sof/prj.conf index 033a9bef442..ae16a6dd8a8 100644 --- a/samples/subsys/audio/sof/prj.conf +++ b/samples/subsys/audio/sof/prj.conf @@ -8,6 +8,10 @@ CONFIG_DEBUG_MEMORY_USAGE_SCAN=n # Ensure -O2 (or similar) is used for optimization CONFIG_SPEED_OPTIMIZATIONS=y +# Zephyr top-level default of -fno-strict-overflow is +# not a good fit for audio DSP code +CONFIG_COMPILER_OPT="-fstrict-overflow" + CONFIG_SCHED_DEADLINE=y CONFIG_SCHED_CPU_MASK=y CONFIG_SMP_BOOT_DELAY=y