Skip to content

Commit ef8ce46

Browse files
authored
Merge pull request #73 from rust-osdev/embed-bitcode
Pass -Cembed-bitcode=yes instead of -Clinker-plugin-lto for sysroot build
2 parents cf1128a + d94a842 commit ef8ce46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sysroot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn build_crate(
9090

9191
let cargo = std::env::var("CARGO").unwrap_or("cargo".to_string());
9292
let mut cmd = Command::new(cargo);
93-
cmd.env("RUSTFLAGS", "-Clinker-plugin-lto");
93+
cmd.env("RUSTFLAGS", "-Cembed-bitcode=yes");
9494
cmd.env("CARGO_TARGET_DIR", &target_dir);
9595
cmd.env("__CARGO_DEFAULT_LIB_METADATA", "XARGO");
9696

0 commit comments

Comments
 (0)