We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a166f21 commit c926113Copy full SHA for c926113
src/utils/extern_args.rs
@@ -98,11 +98,16 @@ impl ExternArgs {
98
99
while let Some(arg) = arg_iter.next() {
100
match arg {
101
- "-L" | "--library-path" | "--extern" => {
+ "-L" | "--library-path" => {
102
self.suffix_args.push(arg.to_owned());
103
self.suffix_args
104
.push(arg_iter.next().unwrap_or("").to_owned());
105
}
106
+ "--extern" => { // needs a hack to force reference to rlib over rmeta
107
+ self.suffix_args.push(arg.to_owned());
108
+ self.suffix_args
109
+ .push(arg_iter.next().unwrap_or("").replace(".rmeta", ".rlib").to_owned());
110
+ }
111
_ => {}
112
113
0 commit comments