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