Skip to content

Commit c3ec58c

Browse files
author
bors-servo
authored
Auto merge of #1186 - manaskarekar:issue-1182, r=emilio
Fix command_line_flags mis-generation of rust-target's flags. Trying to address issue #1182. r? @fitzgen
2 parents 6355f0a + 23d9f12 commit c3ec58c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl Builder {
178178
output_vector.push(header);
179179
}
180180

181+
output_vector.push("--rust-target".into());
181182
output_vector.push(self.options.rust_target.into());
182183

183184
self.options
@@ -1898,6 +1899,7 @@ fn commandline_flag_unit_test_function() {
18981899
let command_line_flags = bindings.command_line_flags();
18991900

19001901
let test_cases = vec![
1902+
"--rust-target",
19011903
"--no-derive-default",
19021904
"--generate",
19031905
"function,types,vars,methods,constructors,destructors",
@@ -1917,6 +1919,7 @@ fn commandline_flag_unit_test_function() {
19171919

19181920
let command_line_flags = bindings.command_line_flags();
19191921
let test_cases = vec![
1922+
"--rust-target",
19201923
"input_header",
19211924
"--no-derive-default",
19221925
"--generate",

0 commit comments

Comments
 (0)