From 85cd7decd6218a2dc389f8e59d21855c0bee70f0 Mon Sep 17 00:00:00 2001 From: MBaesken Date: Thu, 14 Nov 2024 15:11:36 +0100 Subject: [PATCH] use -DINCLUDE_LINK_TIME_OPTIMIZATION=1 in lto build --- make/hotspot/lib/JvmFeatures.gmk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/hotspot/lib/JvmFeatures.gmk b/make/hotspot/lib/JvmFeatures.gmk index 20fe725eee16b..36b12bbf07d1b 100644 --- a/make/hotspot/lib/JvmFeatures.gmk +++ b/make/hotspot/lib/JvmFeatures.gmk @@ -170,12 +170,12 @@ ifeq ($(call check-jvm-feature, link-time-opt), true) # later on if desired JVM_OPTIMIZATION := HIGHEST_JVM ifeq ($(call isCompiler, gcc), true) - JVM_CFLAGS_FEATURES += -DINCLUDE_LTO=1 -flto=auto -fuse-linker-plugin -fno-strict-aliasing \ + JVM_CFLAGS_FEATURES += -DINCLUDE_LINK_TIME_OPTIMIZATION=1 -flto=auto -fuse-linker-plugin -fno-strict-aliasing \ -fno-fat-lto-objects JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto=auto \ -fuse-linker-plugin -fno-strict-aliasing else ifeq ($(call isCompiler, microsoft), true) - JVM_CFLAGS_FEATURES += -DINCLUDE_LTO=1 -GL + JVM_CFLAGS_FEATURES += -DINCLUDE_LINK_TIME_OPTIMIZATION=1 -GL JVM_LDFLAGS_FEATURES += -LTCG:INCREMENTAL endif else