mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-12-02 20:22:35 -05:00
build: use four native release codegen units
This commit is contained in:
1 parent
fa026c39fd
commit
3e2d633eb9
1 file changed
+4
-1
+4
-1
@@ -66,12 +66,15 @@ debug = "line-tables-only"
|
||||
|
||||
[profile.release]
|
||||
lto = "thin"
|
||||
codegen-units = 1
|
||||
# Give LLVM room to compile in parallel without dropping ThinLTO.
|
||||
codegen-units = 4
|
||||
|
||||
[profile.wasm-release]
|
||||
inherits = "release"
|
||||
opt-level = "s"
|
||||
lto = "fat"
|
||||
# Keep the existing web codegen setting independent of native release builds.
|
||||
codegen-units = 1
|
||||
strip = "debuginfo"
|
||||
|
||||
# Keep the complete egui family and native event bridge on reviewed fork commits.
|
||||
|
||||
Reference in new issue
Block a user