From 242eeaea47a259cab4ad2d4f0e055959e9870b8d Mon Sep 17 00:00:00 2001 From: Erik Joelsson Date: Wed, 20 Sep 2023 12:48:19 +0000 Subject: [PATCH] 8286757: adlc tries to build with /pathmap but without /experimental:deterministic Reviewed-by: jwaters, ihse --- make/autoconf/flags-cflags.m4 | 1 + make/autoconf/spec.gmk.in | 1 + make/hotspot/gensrc/GensrcAdlc.gmk | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4 index 8655dfe41fb..cf7f4534c89 100644 --- a/make/autoconf/flags-cflags.m4 +++ b/make/autoconf/flags-cflags.m4 @@ -818,6 +818,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP], REPRODUCIBLE_CFLAGS= ] ) + AC_SUBST(REPRODUCIBLE_CFLAGS) fi # Prevent the __FILE__ macro from generating absolute paths into the built diff --git a/make/autoconf/spec.gmk.in b/make/autoconf/spec.gmk.in index a3755f82a7c..1cead7d051d 100644 --- a/make/autoconf/spec.gmk.in +++ b/make/autoconf/spec.gmk.in @@ -424,6 +424,7 @@ LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@ ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@ LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@ FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@ +REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@ BRANCH_PROTECTION_CFLAGS := @BRANCH_PROTECTION_CFLAGS@ STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@ diff --git a/make/hotspot/gensrc/GensrcAdlc.gmk b/make/hotspot/gensrc/GensrcAdlc.gmk index 427a0dfd34b..1b752bacc00 100644 --- a/make/hotspot/gensrc/GensrcAdlc.gmk +++ b/make/hotspot/gensrc/GensrcAdlc.gmk @@ -62,7 +62,7 @@ ifeq ($(call check-jvm-feature, compiler2), true) ADLC_CFLAGS += -I$(TOPDIR)/src/hotspot/share # Add file macro mappings - ADLC_CFLAGS += $(FILE_MACRO_CFLAGS) + ADLC_CFLAGS += $(FILE_MACRO_CFLAGS) $(REPRODUCIBLE_CFLAGS) ifeq ($(UBSAN_ENABLED), true) ADLC_CFLAGS += $(UBSAN_CFLAGS)