[runtime] Don't re-aot when running BCL tests
[mono.git] / mcs / build / tests.make
index a30a9e97f794c4f729d45d026dc51ee224a5e5be..82688cf0bb574b4720fd596337ea6181628893ec 100644 (file)
@@ -126,8 +126,8 @@ LABELS_ARG = -labels
 endif
 
 ifdef ALWAYS_AOT
-test-local-aot-compile: $(topdir)/build/deps/nunit-$(PROFILE).stamp
-       PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" MONO_TESTS_IN_PROGRESS="yes" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(AOT_BUILD_FLAGS) $(test_assemblies)
+test-local-aot-compile: $(topdir)/build/deps/nunit-$(PROFILE).stamp $(test_assemblies)
+       make -C $(topdir)/class aot-all-profile
 
 else
 test-local-aot-compile: $(topdir)/build/deps/nunit-$(PROFILE).stamp