diff --git a/make/Main.gmk b/make/Main.gmk index d0c81c84fed..687ba36c4c4 100644 --- a/make/Main.gmk +++ b/make/Main.gmk @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -92,9 +92,11 @@ $(eval $(call SetupTarget, buildtools-modules, \ MAKEFILE := CompileModuleTools, \ )) +# interim-langtools is needed by hotspot only when $(INCLUDE_GRAAL) is true +GRAAL_INTERIM_LANGTOOLS_true = interim-langtools $(eval $(call SetupTarget, buildtools-hotspot, \ MAKEFILE := CompileToolsHotspot, \ - DEPS := interim-langtools, \ + DEPS := $(GRAAL_INTERIM_LANGTOOLS_$(INCLUDE_GRAAL)), \ )) ################################################################################