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<'_> {
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`" ) ) ;
You can’t perform that action at this time.
0 commit comments