Skip to content

Commit befcf26

Browse files
authored
Merge pull request #2106 from hermit-os/crate-type
feat: separate crate types
2 parents 13b7df7 + 1e23b29 commit befcf26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ exclude = [
1919
]
2020

2121
[lib]
22-
crate-type = ["staticlib", "lib"] # "lib" required for integration tests
2322
name = "hermit"
2423

2524
[[test]]

xtask/src/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ impl Build {
3636
let mut cargo = crate::cargo();
3737
cargo
3838
.args(careful)
39-
.arg("build")
39+
.arg("rustc")
40+
.arg("--crate-type=staticlib")
4041
.env("CARGO_ENCODED_RUSTFLAGS", self.cargo_encoded_rustflags()?)
4142
.args(self.cargo_build.artifact.arch.cargo_args())
4243
.args(self.cargo_build.cargo_build_args());

0 commit comments

Comments
 (0)