@@ -27,6 +27,7 @@ fn doit() -> Result<(), Box<dyn Error>> {
2727 let mut out_path = None ;
2828 let mut rustc_path = None ;
2929 let mut rustc_target = None ;
30+ let mut rustc_linker = None ;
3031 let mut verbose = false ;
3132 let mut validate = false ;
3233 while let Some ( arg) = args. next ( ) {
@@ -55,6 +56,12 @@ fn doit() -> Result<(), Box<dyn Error>> {
5556 None => return Err ( "--rustc-target requires a value" . into ( ) ) ,
5657 } ;
5758 }
59+ "--rustc-linker" => {
60+ rustc_linker = match args. next ( ) {
61+ Some ( s) => Some ( s) ,
62+ None => return Err ( "--rustc-linker requires a value" . into ( ) ) ,
63+ } ;
64+ }
5865 "-v" | "--verbose" => verbose = true ,
5966 "--validate" => validate = true ,
6067 s => return Err ( format ! ( "unexpected argument `{}`" , s) . into ( ) ) ,
@@ -77,6 +84,7 @@ fn doit() -> Result<(), Box<dyn Error>> {
7784 out_path : & out_path. unwrap ( ) ,
7885 rustc_path : & rustc_path. unwrap ( ) ,
7986 rustc_target : & rustc_target. unwrap ( ) ,
87+ rustc_linker : rustc_linker. as_deref ( ) ,
8088 verbose,
8189 validate,
8290 } ;
0 commit comments