Commit 32ddc49
committed
CMake: Enable WMO for Release builds
The new interpreter heavily benefits from WMO and it's even slower than
the old one without it. This change enables WMO for Release builds for
CMake builds as it's not enabled by default.
Use `CMAKE_Swift_COMPILATION_MODE` if CMake 3.29 or newer is used, and
fall back to `add_compile_options` if older.
https://cmake.org/cmake/help/latest/prop_tgt/Swift_COMPILATION_MODE.html1 parent 16a7a63 commit 32ddc49
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
0 commit comments