[mobile_static] Set MCS build options for mobile_static to feature gate runner
authorAlexander Kyte <alexmkyte@gmail.com>
Wed, 13 Jul 2016 23:36:15 +0000 (19:36 -0400)
committerAlexander Kyte <alexmkyte@gmail.com>
Mon, 18 Jul 2016 19:03:37 +0000 (15:03 -0400)
mono/tests/Makefile.am

index 2bd8f5dff12e5266fa7c39893d1b5e7fdb1fec29..37a3c6f682529df7534e7e6c003b8bb3c239adc4 100644 (file)
@@ -38,11 +38,15 @@ MKBUNDLE = \
        PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
        $(RUNTIME) $(CLASS)/mkbundle.exe
 
+if INSTALL_MOBILE_STATIC
+PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_STATIC,MOBILE_LEGACY 
+endif
+
 MCS_NO_LIB = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -debug \
        -noconfig -nologo \
        -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
        -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
-       -nowarn:0197
+       -nowarn:0197 $(PROFILE_MCS_FLAGS)
 
 MCS = $(MCS_NO_LIB) -lib:$(CLASS)