Skip to content

Commit

Permalink
use fat lto objects on AIX/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Dec 3, 2024
1 parent 68bb4cc commit f799bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make/hotspot/lib/JvmFeatures.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ ifeq ($(call check-jvm-feature, link-time-opt), true)
-fuse-linker-plugin -fno-strict-aliasing
else ifeq ($(call isCompiler, clang), true)
JVM_CFLAGS_FEATURES += -flto -fno-strict-aliasing
ifeq ($(call isBuildOs, aix), true)
JVM_CFLAGS_FEATURES += -ffat-lto-objects
endif
JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto -fno-strict-aliasing
else ifeq ($(call isCompiler, microsoft), true)
JVM_CFLAGS_FEATURES += -GL
Expand Down

0 comments on commit f799bcc

Please sign in to comment.