File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
branches/try/src/librustc/middle Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: ce954d117fd1e8b0ab320ed905726b658ccb7db0
5
+ refs/heads/try: 25f9fa0359e35e6e55b841049598a6aff87fd668
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change 10
10
11
11
use core:: prelude:: * ;
12
12
13
+ use driver:: session;
13
14
use driver:: session:: Session ;
14
15
use metadata:: csearch:: { each_path, get_method_names_if_trait} ;
15
16
use metadata:: csearch:: { get_static_methods_if_impl, get_type_name_if_impl} ;
@@ -3931,7 +3932,10 @@ impl Resolver {
3931
3932
item_fn( ref fn_decl, _, ref ty_params, ref block) => {
3932
3933
// If this is the main function, we must record it in the
3933
3934
// 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
+
3935
3939
if self. attr_main_fn. is_none( ) &&
3936
3940
item. ident == special_idents:: main {
3937
3941
You can’t perform that action at this time.
0 commit comments