[runtime] Default mobile_static AOT type to FullAOT
authorAlexander Kyte <alkyte@microsoft.com>
Tue, 16 Aug 2016 21:11:14 +0000 (21:11 +0000)
committerAlexander Kyte <alkyte@microsoft.com>
Tue, 16 Aug 2016 21:11:53 +0000 (21:11 +0000)
configure.ac

index 924acc99cdbbc681fa194f859aa9fc50b36e8dea..ef3e89663e9ff1c949d83dab99c8a88870da81a5 100644 (file)
@@ -816,7 +816,7 @@ elif test x$with_runtime_preset = xmobile_static; then
    mono_feature_disable_reflection_emit='yes'
    mono_feature_disable_appdomains='yes'
 
-   AOT_BUILD_FLAGS="-O=gsharedvt --aot=full,$INVARIANT_AOT_OPTIONS"
+   AOT_BUILD_FLAGS="--aot=full,$INVARIANT_AOT_OPTIONS"
    AOT_RUN_FLAGS="--full-aot"
 elif test x$with_runtime_preset = xbitcode_mobile_static; then
    DISABLE_MCS_DOCS_default=yes
@@ -852,13 +852,17 @@ else
    with_cooperative_gc_default=no
 fi
 
-if test "x$AOT_BUILD_FLAGS" != "x"; then :
-   AC_SUBST(AOT_BUILD_FLAGS)
-   AC_SUBST(AOT_RUN_FLAGS)
-   # For llvmonlycheck + fullaotcheck
-   AC_SUBST(INVARIANT_AOT_OPTIONS)
+# Have a default AOT mode for mobile_static
+if test "x$AOT_BUILD_FLAGS" = "x"; then :
+   AOT_BUILD_FLAGS="--aot=full,$INVARIANT_AOT_OPTIONS"
+   AOT_RUN_FLAGS="--full-aot"
 fi
 
+AC_SUBST(AOT_BUILD_FLAGS)
+AC_SUBST(AOT_RUN_FLAGS)
+# For llvmonlycheck + fullaotcheck
+AC_SUBST(INVARIANT_AOT_OPTIONS)
+
 AC_SUBST(TEST_PROFILE)
 
 if test "x$with_profile4_x" = "xdefault"; then