We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cc4f4f commit 139d6baCopy full SHA for 139d6ba
src/bootstrap/src/core/builder/cargo.rs
@@ -653,14 +653,18 @@ impl Builder<'_> {
653
// Build proc macros both for the host and the target unless proc-macros are not
654
// supported by the target.
655
if target != compiler.host && cmd_kind != Kind::Check {
656
- let error = command(self.rustc(compiler))
+ let mut rustc_cmd = command(self.rustc(compiler));
657
+ self.add_rustc_lib_path(compiler, &mut rustc_cmd);
658
+
659
+ let error = rustc_cmd
660
.arg("--target")
661
.arg(target.rustc_target_arg())
662
.arg("--print=file-names")
663
.arg("--crate-type=proc-macro")
664
.arg("-")
665
.run_capture(self)
666
.stderr();
667
668
let not_supported = error
669
.lines()
670
.any(|line| line.contains("unsupported crate type `proc-macro`"));
0 commit comments