Skip to content

Commit 6bd356e

Browse files
committed
---
yaml --- r: 41955 b: refs/heads/master c: 718a0fc h: refs/heads/master i: 41953: 0965851 41951: 7f7d825 v: v3
1 parent 8975cd1 commit 6bd356e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 07d0af151a5c2acf283b960eb34d769b0fb06c29
2+
refs/heads/master: 718a0fcdc1d6a338cddc9aba76a2ae1ddb4e9486
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/librustc/middle/resolve.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use core::prelude::*;
1212

13+
use driver::session;
1314
use driver::session::Session;
1415
use metadata::csearch::{each_path, get_method_names_if_trait};
1516
use metadata::csearch::{get_static_methods_if_impl, get_type_name_if_impl};
@@ -3931,7 +3932,10 @@ impl Resolver {
39313932
item_fn(ref fn_decl, _, ref ty_params, ref block) => {
39323933
// If this is the main function, we must record it in the
39333934
// session.
3934-
if !self.session.building_library {
3935+
// FIXME #4404 android JNI hacks
3936+
if !self.session.building_library ||
3937+
self.session.targ_cfg.os == session::os_android {
3938+
39353939
if self.attr_main_fn.is_none() &&
39363940
item.ident == special_idents::main {
39373941

0 commit comments

Comments
 (0)