make/common/Modules.gmk
changeset 42532 4780f4130eb0
parent 42531 37ee95196b17
child 42533 7adb02a61b45
--- a/make/common/Modules.gmk	Sun Dec 11 12:09:13 2016 -0800
+++ b/make/common/Modules.gmk	Sun Dec 11 18:50:18 2016 -0800
@@ -145,13 +145,20 @@
 endif
 
 ################################################################################
-# Filter out specific modules
+# Filter out Graal specific modules if Graal build is disabled
 
 ifeq ($(INCLUDE_GRAAL), false)
   MODULES_FILTER += jdk.vm.compiler
 endif
 
 ################################################################################
+# Filter out aot specific modules if aot is disabled
+
+ifeq ($(ENABLE_AOT), false)
+  MODULES_FILTER += jdk.aot
+endif
+
+################################################################################
 # Module list macros
 
 # Use append so that the custom extension may add to these variables