We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce954d1 + 718a0fc commit 25f9fa0Copy full SHA for 25f9fa0
src/librustc/middle/resolve.rs
@@ -10,6 +10,7 @@
10
11
use core::prelude::*;
12
13
+use driver::session;
14
use driver::session::Session;
15
use metadata::csearch::{each_path, get_method_names_if_trait};
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) => {
3933
// If this is the main function, we must record it in the
3934
// session.
- 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
+
3939
if self.attr_main_fn.is_none() &&
3940
item.ident == special_idents::main {
3941
0 commit comments