Skip to content

Commit 2934193

Browse files
authored
Merge pull request #2404 from hermit-os/profile-release
feat: add dist profile
2 parents d24cfba + e60da85 commit 2934193

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,11 @@ unreadable_literal = "warn"
440440
[patch.crates-io]
441441
safe-mmio = { git = "https://github.com/hermit-os/safe-mmio", branch = "0.3.x" }
442442

443-
[profile.profiling]
443+
[profile.dist]
444444
inherits = "release"
445+
lto = "thin"
446+
codegen-units = 1
447+
448+
[profile.profiling]
449+
inherits = "dist"
445450
debug = "line-tables-only"

hermit-builtins/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ libm = "0.2"
99
crate-type = ["staticlib"]
1010
harness = false
1111

12-
[profile.profiling]
12+
[profile.dist]
1313
inherits = "release"
14+
lto = "thin"
15+
codegen-units = 1
16+
17+
[profile.profiling]
18+
inherits = "dist"
1419
debug = "line-tables-only"
1520

1621
[workspace]

xtask/src/artifact.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Artifact {
4646
if self.profile_path_component() == "profiling" {
4747
self.profile_path_component()
4848
} else {
49-
"release"
49+
"dist"
5050
}
5151
}
5252

0 commit comments

Comments
 (0)