mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Set codegen-untis=1 for some crates in release mode (#7332)
This commit is contained in:
1 parent
4c5f6332e8
commit
42628a53b9
1 file changed
+12
-1
+12
-1
@@ -77,10 +77,21 @@ opt-level = 3
|
||||
# https://github.com/rust-lang/rust/issues/92869
|
||||
# lto = "thin"
|
||||
|
||||
# Doesn't change often
|
||||
# Some crates don't change as much but benefit more from
|
||||
# more expensive optimization passes, so we selectively
|
||||
# decrease codegen-units in some cases.
|
||||
[profile.release.package.rustpython-doc]
|
||||
codegen-units = 1
|
||||
|
||||
[profile.release.package.rustpython-literal]
|
||||
codegen-units = 1
|
||||
|
||||
[profile.release.package.rustpython-common]
|
||||
codegen-units = 1
|
||||
|
||||
[profile.release.package.rustpython-wtf8]
|
||||
codegen-units = 1
|
||||
|
||||
[profile.bench]
|
||||
lto = "thin"
|
||||
codegen-units = 1
|
||||
|
||||
Reference in new issue
Block a user