[mobile_static] AOT the mono/tests test runner when AOTing tests
authorAlexander Kyte <alexmkyte@fastmail.com>
Fri, 27 May 2016 15:19:11 +0000 (11:19 -0400)
committerAlexander Kyte <alexmkyte@gmail.com>
Mon, 18 Jul 2016 19:03:40 +0000 (15:03 -0400)
mono/tests/Makefile.am

index c594408433ba179b3a98a94016682619144643cf..df9588e1952d537969883d9633a3c59b1f5ddfb6 100644 (file)
@@ -822,8 +822,15 @@ rm-empty-logs:
 assemblyresolve/test/asm.dll:
        $(MAKE) -C assemblyresolve prereq
 
+
+if INSTALL_MOBILE_STATIC
+TestDriver.dll:
+       $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
+       $(RUNTIME) $(AOT_BUILD_FLAGS) $@
+else
 TestDriver.dll:
        $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
+endif
 
 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
        @failed=0; \