Skip to content

Commit 45c4b6f

Browse files
committed
Fix abi stuff
1 parent e776c3d commit 45c4b6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gen.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use core::io::WriterUtil;
22
use core::hashmap::linear::LinearSet;
33

4+
use syntax::abi;
45
use syntax::ast;
56
use syntax::codemap::{dummy_sp, dummy_spanned};
67
use syntax::codemap;
@@ -198,7 +199,7 @@ fn mk_extern(ctx: &mut GenCtx, link: &Option<~str>,
198199

199200
let ext = ast::item_foreign_mod(ast::foreign_mod {
200201
sort: ast::anonymous,
201-
abi: ctx.ext_cx.ident_of(~"C"),
202+
abis: abi::AbiSet::from(abi::C),
202203
view_items: ~[],
203204
items: vars + funcs
204205
});

0 commit comments

Comments
 (0)