Skip to content

Commit

Permalink
use -DINCLUDE_LINK_TIME_OPTIMIZATION=1 in lto build
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Nov 14, 2024
1 parent 1f42d91 commit 85cd7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make/hotspot/lib/JvmFeatures.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85cd7de

Please sign in to comment.