@@ -39,9 +39,9 @@ fn run_buildrs() -> Result<(), String> {
39
39
progname,
40
40
crate_links,
41
41
out_dir,
42
- envfile ,
43
- flagfile ,
44
- linkflags ,
42
+ env_file ,
43
+ compile_flags_file ,
44
+ link_flags_file ,
45
45
output_dep_env_path,
46
46
stdout_path,
47
47
stderr_path,
@@ -136,10 +136,10 @@ fn run_buildrs() -> Result<(), String> {
136
136
} ) ?;
137
137
138
138
write (
139
- & envfile ,
139
+ & env_file ,
140
140
BuildScriptOutput :: to_env ( & buildrs_outputs, & exec_root. to_string_lossy ( ) ) . as_bytes ( ) ,
141
141
)
142
- . expect ( & format ! ( "Unable to write file {:?}" , envfile ) ) ;
142
+ . expect ( & format ! ( "Unable to write file {:?}" , env_file ) ) ;
143
143
write (
144
144
& output_dep_env_path,
145
145
BuildScriptOutput :: to_dep_env ( & buildrs_outputs, & crate_links, & exec_root. to_string_lossy ( ) )
@@ -156,10 +156,10 @@ fn run_buildrs() -> Result<(), String> {
156
156
link_flags,
157
157
} = BuildScriptOutput :: to_flags ( & buildrs_outputs, & exec_root. to_string_lossy ( ) ) ;
158
158
159
- write ( & flagfile , compile_flags. as_bytes ( ) )
160
- . expect ( & format ! ( "Unable to write file {:?}" , flagfile ) ) ;
161
- write ( & linkflags , link_flags. as_bytes ( ) )
162
- . expect ( & format ! ( "Unable to write file {:?}" , linkflags ) ) ;
159
+ write ( & compile_flags_file , compile_flags. as_bytes ( ) )
160
+ . expect ( & format ! ( "Unable to write file {:?}" , compile_flags_file ) ) ;
161
+ write ( & link_flags_file , link_flags. as_bytes ( ) )
162
+ . expect ( & format ! ( "Unable to write file {:?}" , link_flags_file ) ) ;
163
163
Ok ( ( ) )
164
164
}
165
165
@@ -168,9 +168,9 @@ struct Options {
168
168
progname : String ,
169
169
crate_links : String ,
170
170
out_dir : String ,
171
- envfile : String ,
172
- flagfile : String ,
173
- linkflags : String ,
171
+ env_file : String ,
172
+ compile_flags_file : String ,
173
+ link_flags_file : String ,
174
174
output_dep_env_path : String ,
175
175
stdout_path : String ,
176
176
stderr_path : String ,
@@ -187,9 +187,9 @@ fn parse_args() -> Result<Options, String> {
187
187
Some ( progname) ,
188
188
Some ( crate_links) ,
189
189
Some ( out_dir) ,
190
- Some ( envfile ) ,
191
- Some ( flagfile ) ,
192
- Some ( linkflags ) ,
190
+ Some ( env_file ) ,
191
+ Some ( compile_flags_file ) ,
192
+ Some ( link_flags_file ) ,
193
193
Some ( output_dep_env_path) ,
194
194
Some ( stdout_path) ,
195
195
Some ( stderr_path) ,
@@ -198,17 +198,17 @@ fn parse_args() -> Result<Options, String> {
198
198
progname,
199
199
crate_links,
200
200
out_dir,
201
- envfile ,
202
- flagfile ,
203
- linkflags ,
201
+ env_file ,
202
+ compile_flags_file ,
203
+ link_flags_file ,
204
204
output_dep_env_path,
205
205
stdout_path,
206
206
stderr_path,
207
207
input_dep_env_paths : args. collect ( ) ,
208
208
} )
209
209
}
210
210
_ => {
211
- Err ( "Usage: $0 progname out_dir envfile flagfile linkflagfile output_dep_env_path [arg1...argn]" . to_owned ( ) )
211
+ Err ( format ! ( "Usage: $0 progname crate_links out_dir env_file compile_flags_file link_flags_file output_dep_env_path stdout_path stderr_path input_dep_env_paths [arg1...argn]\n Arguments passed: {:?}" , args . collect :: < Vec < String >> ( ) ) )
212
212
}
213
213
}
214
214
}
0 commit comments