From 82859535c3c9de4e5fde50d962d53395e089ac88 Mon Sep 17 00:00:00 2001 From: Vladimir Kozlov Date: Tue, 29 Aug 2017 10:24:10 -0700 Subject: [PATCH] 8186462: [Graal] build Graal regardless AOT build Reviewed-by: twisti, thartmann, erikj --- common/autoconf/generated-configure.sh | 10 +++++++--- common/autoconf/hotspot.m4 | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index 0ccae613fd3..eed950c7513 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -5151,7 +5151,7 @@ VS_SDK_PLATFORM_NAME_2013= #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1503919695 +DATE_WHEN_GENERATED=1504027321 ############################################################################### # @@ -65798,8 +65798,12 @@ $as_echo "yes, forced" >&6; } fi INCLUDE_GRAAL="true" else - # By default enable graal build where AOT is available - if test "x$ENABLE_AOT" = "xtrue"; then + # By default enable graal build on linux-x64 or where AOT is available. + # graal build requires jvmci. + if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ + (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ + test "x$OPENJDK_TARGET_OS" = "xlinux" || \ + test "x$ENABLE_AOT" = "xtrue") ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } JVM_FEATURES_graal="graal" diff --git a/common/autoconf/hotspot.m4 b/common/autoconf/hotspot.m4 index 99803d1770b..fa361eb7fad 100644 --- a/common/autoconf/hotspot.m4 +++ b/common/autoconf/hotspot.m4 @@ -335,8 +335,12 @@ AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES], fi INCLUDE_GRAAL="true" else - # By default enable graal build where AOT is available - if test "x$ENABLE_AOT" = "xtrue"; then + # By default enable graal build on linux-x64 or where AOT is available. + # graal build requires jvmci. + if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ + (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ + test "x$OPENJDK_TARGET_OS" = "xlinux" || \ + test "x$ENABLE_AOT" = "xtrue") ; then AC_MSG_RESULT([yes]) JVM_FEATURES_graal="graal" INCLUDE_GRAAL="true"