Skip to content

Commit 4a6da99

Browse files
committedJun 14, 2021
8268643: SVML lib shouldn't be generated when C2 is absent
Reviewed-by: erikj
1 parent a5bf5e0 commit 4a6da99

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
 

‎make/autoconf/jvm-features.m4

+5
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ AC_DEFUN([JVM_FEATURES_VERIFY],
542542
if ! JVM_FEATURES_IS_ACTIVE(jvmci); then
543543
INCLUDE_JVMCI="false"
544544
fi
545+
if JVM_FEATURES_IS_ACTIVE(compiler2); then
546+
INCLUDE_COMPILER2="true"
547+
fi
545548
546549
# Verify that we have at least one gc selected (i.e., feature named "*gc").
547550
if ! JVM_FEATURES_IS_ACTIVE(.*gc); then
@@ -565,6 +568,7 @@ AC_DEFUN_ONCE([JVM_FEATURES_SETUP],
565568
# missing any of them.
566569
ENABLE_CDS="true"
567570
INCLUDE_JVMCI="true"
571+
INCLUDE_COMPILER2="false"
568572
569573
for variant in $JVM_VARIANTS; do
570574
# Figure out if any features are unavailable, or should be filtered out
@@ -601,5 +605,6 @@ AC_DEFUN_ONCE([JVM_FEATURES_SETUP],
601605
AC_SUBST(JVM_FEATURES_custom)
602606
603607
AC_SUBST(INCLUDE_JVMCI)
608+
AC_SUBST(INCLUDE_COMPILER2)
604609
605610
])

‎make/autoconf/spec.gmk.in

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ PNG_CFLAGS:=@PNG_CFLAGS@
853853

854854
INCLUDE_SA=@INCLUDE_SA@
855855
INCLUDE_JVMCI=@INCLUDE_JVMCI@
856+
INCLUDE_COMPILER2=@INCLUDE_COMPILER2@
856857

857858
OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
858859
OS_VERSION_MINOR:=@OS_VERSION_MINOR@

‎make/modules/jdk.incubator.vector/Lib.gmk

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include LibCommon.gmk
2727

2828
################################################################################
2929

30-
ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64), true+true)
30+
ifeq ($(call isTargetOs, linux windows)+$(call isTargetCpu, x86_64)+$(INCLUDE_COMPILER2), true+true+true)
3131
$(eval $(call SetupJdkLibrary, BUILD_LIBSVML, \
3232
NAME := svml, \
3333
CFLAGS := $(CFLAGS_JDKLIB), \

0 commit comments

Comments
 (0)
Please sign in to comment.