File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/bootstrap/src/core/builder Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -659,14 +659,18 @@ impl Builder<'_> {
659
659
// Build proc macros both for the host and the target unless proc-macros are not
660
660
// supported by the target.
661
661
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
663
666
. arg ( "--target" )
664
667
. arg ( target. rustc_target_arg ( ) )
665
668
. arg ( "--print=file-names" )
666
669
. arg ( "--crate-type=proc-macro" )
667
670
. arg ( "-" )
668
671
. run_capture ( self )
669
672
. stderr ( ) ;
673
+
670
674
let not_supported = error
671
675
. lines ( )
672
676
. any ( |line| line. contains ( "unsupported crate type `proc-macro`" ) ) ;
You can’t perform that action at this time.
0 commit comments