Skip to content

Commit b8f3263

Browse files
committed
toolchain: clang: compiler opt: -Ofast -> -O3 -ffast-math
clang 20 does not like -Ofast. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent e4b4a8d commit b8f3263

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/compiler/clang/compiler_flags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake)
66
# No property flag, clang doesn't understand fortify at all
77
set_compiler_property(PROPERTY security_fortify_compile_time)
88
set_compiler_property(PROPERTY security_fortify_run_time)
9+
set_compiler_property(PROPERTY optimization_fast -O3 -ffast-math)
910

1011
# No printf-return-value optimizations in clang
1112
set_compiler_property(PROPERTY no_printf_return_value)

0 commit comments

Comments
 (0)