Skip to content

Commit 7d480ea

Browse files
authored
Rollup merge of rust-lang#136309 - onur-ozkan:133629, r=jieyouxu
set rustc dylib on manually constructed rustc command Fixes rust-lang#133629
2 parents e9520b7 + 139d6ba commit 7d480ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/src/core/builder/cargo.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -659,14 +659,18 @@ impl Builder<'_> {
659659
// Build proc macros both for the host and the target unless proc-macros are not
660660
// supported by the target.
661661
if target != compiler.host && cmd_kind != Kind::Check {
662-
let error = command(self.rustc(compiler))
662+
let mut rustc_cmd = command(self.rustc(compiler));
663+
self.add_rustc_lib_path(compiler, &mut rustc_cmd);
664+
665+
let error = rustc_cmd
663666
.arg("--target")
664667
.arg(target.rustc_target_arg())
665668
.arg("--print=file-names")
666669
.arg("--crate-type=proc-macro")
667670
.arg("-")
668671
.run_capture(self)
669672
.stderr();
673+
670674
let not_supported = error
671675
.lines()
672676
.any(|line| line.contains("unsupported crate type `proc-macro`"));

0 commit comments

Comments
 (0)