mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 16:30:52 +08:00
build: optimize release profile for better performance
Upstream Tauri fixed the stack overflow in the invoke handler (https://github.com/tauri-apps/tauri/pull/14170) in v2.9.0, so we can safely use opt-level 3 now.
This commit is contained in:
@@ -136,9 +136,9 @@ harness = false
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
codegen-units = 16
|
||||
codegen-units = 1
|
||||
lto = "thin"
|
||||
opt-level = 2
|
||||
opt-level = 3
|
||||
debug = false
|
||||
strip = true
|
||||
overflow-checks = false
|
||||
@@ -156,8 +156,8 @@ rpath = false
|
||||
|
||||
[profile.fast-release]
|
||||
inherits = "release"
|
||||
incremental = true
|
||||
codegen-units = 64
|
||||
incremental = true
|
||||
lto = false
|
||||
opt-level = 0
|
||||
debug = true
|
||||
|
||||
Reference in New Issue
Block a user