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 @@ -653,14 +653,18 @@ impl Builder<'_> {
653
653
// Build proc macros both for the host and the target unless proc-macros are not
654
654
// supported by the target.
655
655
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
657
660
. arg ( "--target" )
658
661
. arg ( target. rustc_target_arg ( ) )
659
662
. arg ( "--print=file-names" )
660
663
. arg ( "--crate-type=proc-macro" )
661
664
. arg ( "-" )
662
665
. run_capture ( self )
663
666
. stderr ( ) ;
667
+
664
668
let not_supported = error
665
669
. lines ( )
666
670
. any ( |line| line. contains ( "unsupported crate type `proc-macro`" ) ) ;
You can’t perform that action at this time.
0 commit comments