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<'_> {
659659 // Build proc macros both for the host and the target unless proc-macros are not
660660 // supported by the target.
661661 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
663666 . arg ( "--target" )
664667 . arg ( target. rustc_target_arg ( ) )
665668 . arg ( "--print=file-names" )
666669 . arg ( "--crate-type=proc-macro" )
667670 . arg ( "-" )
668671 . run_capture ( self )
669672 . stderr ( ) ;
673+
670674 let not_supported = error
671675 . lines ( )
672676 . any ( |line| line. contains ( "unsupported crate type `proc-macro`" ) ) ;
You can’t perform that action at this time.
0 commit comments