Commit e42bd38
committed
compiler_flags: Change optimization_fast from '-Ofast' to '-O3'
'-Ofast' enables optimizations that are not standards compliant, which can
produce unexpected results unless used carefully.
When building with clang 19 and newer, it warns:
clang: error: argument '-Ofast' is deprecated; use '-O3 -ffast-math' for
the same behavior, or '-O3' to enable only conforming optimizations
[-Werror,-Wdeprecated-ofast]
Relevant discussion:
* llvm/llvm-project#98736
* https://discourse.llvm.org/t/rfc-deprecate-ofast/78687/109
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115990
Signed-off-by: Tom Hughes <[email protected]>1 parent 459a078 commit e42bd38
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments