@@ -98,8 +98,8 @@ pub fn parse_config(args: Vec<String>) -> Config {
98
98
(eg. emulator, valgrind)",
99
99
"PROGRAM" ,
100
100
)
101
- . optopt ( "" , "host-rustcflags" , "flags to pass to rustc for host" , "FLAGS" )
102
- . optopt ( "" , "target-rustcflags" , "flags to pass to rustc for target" , "FLAGS" )
101
+ . optmulti ( "" , "host-rustcflags" , "flags to pass to rustc for host" , "FLAGS" )
102
+ . optmulti ( "" , "target-rustcflags" , "flags to pass to rustc for target" , "FLAGS" )
103
103
. optopt ( "" , "target-panic" , "what panic strategy the target supports" , "unwind | abort" )
104
104
. optflag ( "" , "verbose" , "run tests verbosely, showing all output" )
105
105
. optflag (
@@ -239,8 +239,8 @@ pub fn parse_config(args: Vec<String>) -> Config {
239
239
} ) ,
240
240
logfile : matches. opt_str ( "logfile" ) . map ( |s| PathBuf :: from ( & s) ) ,
241
241
runtool : matches. opt_str ( "runtool" ) ,
242
- host_rustcflags : matches. opt_str ( "host-rustcflags" ) ,
243
- target_rustcflags : matches. opt_str ( "target-rustcflags" ) ,
242
+ host_rustcflags : Some ( matches. opt_strs ( "host-rustcflags" ) . join ( " " ) ) ,
243
+ target_rustcflags : Some ( matches. opt_strs ( "target-rustcflags" ) . join ( " " ) ) ,
244
244
target_panic : match matches. opt_str ( "target-panic" ) . as_deref ( ) {
245
245
Some ( "unwind" ) | None => PanicStrategy :: Unwind ,
246
246
Some ( "abort" ) => PanicStrategy :: Abort ,
0 commit comments