--- old/make/common/Modules.gmk 2016-10-28 00:28:22.000000000 -0700 +++ new/make/common/Modules.gmk 2016-10-28 00:28:22.000000000 -0700 @@ -144,6 +144,13 @@ endif ################################################################################ +# Filter out aot specific modules if aot is disabled + +ifeq ($(ENABLE_AOT), false) + MODULES_FILTER += jdk.aot jdk.vm.compiler +endif + +################################################################################ # Module list macros # Use append so that the custom extension may add to these variables