Skip to content

Commit 139d6ba

Browse files
committed
set rustc dylib on manually constructed rustc command
Signed-off-by: onur-ozkan <[email protected]>
1 parent 0cc4f4f commit 139d6ba

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
@@ -653,14 +653,18 @@ impl Builder<'_> {
653653
// Build proc macros both for the host and the target unless proc-macros are not
654654
// supported by the target.
655655
if target != compiler.host && cmd_kind != Kind::Check {
656-
let error = command(self.rustc(compiler))
656+
let mut rustc_cmd = command(self.rustc(compiler));
657+
self.add_rustc_lib_path(compiler, &mut rustc_cmd);
658+
659+
let error = rustc_cmd
657660
.arg("--target")
658661
.arg(target.rustc_target_arg())
659662
.arg("--print=file-names")
660663
.arg("--crate-type=proc-macro")
661664
.arg("-")
662665
.run_capture(self)
663666
.stderr();
667+
664668
let not_supported = error
665669
.lines()
666670
.any(|line| line.contains("unsupported crate type `proc-macro`"));

0 commit comments

Comments
 (0)