mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-05-04 15:40:01 -05:00
Use the same release build flags for all platforms for simplicity and performance despite slow Windows GitHub action runners.
This commit is contained in:
+1
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user