diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index da0ccf5e1773d..4cf89cc8981c2 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -687,6 +687,7 @@ impl Step for CodegenBackend { if builder.config.llvm_thin_lto { cargo_tails_args.push("--".to_string()); + cargo_tails_args.push("-Zcross-lang-lto".to_string()); let num_jobs = builder.jobs();