File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
trunk/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 1
1
---
2
- refs/heads/master: 07d0af151a5c2acf283b960eb34d769b0fb06c29
2
+ refs/heads/master: 718a0fcdc1d6a338cddc9aba76a2ae1ddb4e9486
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
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