Skip to content

Commit a2f267b

Browse files
committed
---
yaml --- r: 42630 b: refs/heads/try c: 25f9fa0 h: refs/heads/master v: v3
1 parent 5078472 commit a2f267b

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: ce954d117fd1e8b0ab320ed905726b658ccb7db0
5+
refs/heads/try: 25f9fa0359e35e6e55b841049598a6aff87fd668
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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)