Skip to content

Commit 01a803a

Browse files
committed
Enable relocations for BOLT
1 parent 928d249 commit 01a803a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/compile.rs

+5
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,11 @@ impl Step for Rustc {
904904
cargo.arg("-p").arg(krate);
905905
}
906906

907+
if compiler.stage == 1 {
908+
// Relocations are required for BOLT to work.
909+
cargo.rustflag(&format!("-Clink-args=-Wl,-q"));
910+
}
911+
907912
let _guard = builder.msg_sysroot_tool(
908913
Kind::Build,
909914
compiler.stage,

0 commit comments

Comments
 (0)