Skip to content

Commit e6b57f8

Browse files
committed
Add FIXME's for #4404. Android JNI hacks
1 parent 4fb4be8 commit e6b57f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/middle/trans/base.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,7 @@ fn register_fn_fuller(ccx: @crate_ctxt,
21522152
let llfn: ValueRef = decl_fn(ccx.llmod, copy ps, cc, llfty);
21532153
ccx.item_symbols.insert(node_id, ps);
21542154

2155+
// FIXME #4404 android JNI hacks
21552156
let is_main = is_main_name(path) && (!ccx.sess.building_library ||
21562157
(ccx.sess.building_library &&
21572158
ccx.sess.targ_cfg.os == session::os_android));
@@ -2205,6 +2206,7 @@ fn create_main_wrapper(ccx: @crate_ctxt, sp: span, main_llfn: ValueRef) {
22052206
fn main_name() -> ~str { return ~"main"; }
22062207
let llfty = T_fn(~[ccx.int_type, ccx.int_type], ccx.int_type);
22072208

2209+
// FIXME #4404 android JNI hacks
22082210
let llfn = if ccx.sess.building_library {
22092211
decl_cdecl_fn(ccx.llmod, ~"amain", llfty)
22102212
} else {

0 commit comments

Comments
 (0)