Use the same release build flags for all platforms for simplicity and performance despite slow Windows GitHub action runners.

This commit is contained in:
Sebastian Jeltsch
2024-12-30 22:16:34 +01:00
parent c9199edd22
commit 232449bd0f
+1 -9
View File
@@ -19,7 +19,7 @@ exclude = [
]
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.release.'cfg(not(windows))']
[profile.release]
panic = "unwind"
opt-level = 3
# PGO doesn't work with LTO: https://github.com/llvm/llvm-project/issues/57501
@@ -27,14 +27,6 @@ opt-level = 3
lto = true
codegen-units = 1
# Release builds for Windows on GitHub action runners are much slower, thus
# increase the parallel codegen units.
[profile.release.'cfg(windows)']
panic = "unwind"
opt-level = 3
lto = true
codegen-units = 16
# Workaround for https://github.com/gwenn/lemon-rs/issues/78. sqlite3-parser
# requires 1+MB stack frames to parse trivial SQL statements, which is larger
# than Window's default stack size of 1MB. This is due to the rust compiler not