[aot/bcl] Add Makefile configuration to build the bcl with aot, use it in mobile_static.
[mono.git] / mcs / build / profiles / mobile_static.make
index 03e20ed74adc62fdcfcb05d63c57654243bcbd26..13e076a3081b5d0b2635aa36374d739d142d4e97 100644 (file)
@@ -44,3 +44,17 @@ NO_VTS_TEST = yes
 # Note need for trailing comma. If you add, keep it
 PROFILE_TEST_HARNESS_EXCLUDES = MobileNotWorking,
 
+ifndef MONO_DISABLE_GSHAREDVT
+GSHAREDVT_FLAG = -O=gsharedvt
+endif
+
+ifeq ($(MONO_LLVMONLY),TRUE)
+AOT_BUILD_FLAGS_PREFIX = $(GSHAREDVT_FLAG) --aot=llvmonly,
+AOT_RUN_FLAGS =  --llvmonly
+else
+AOT_BUILD_FLAGS_PREFIX = $(GSHAREDVT_FLAG) --aot=full,
+AOT_RUN_FLAGS = --full-aot
+endif
+
+ALWAYS_AOT = yes
+