Skip to content

Commit b8c68c0

Browse files
MBaeskenstefank
andcommitted
8348207: Linux PPC64 PCH build broken after JDK-8347909
Co-authored-by: Stefan Karlsson <[email protected]> Reviewed-by: clanger, erikj, mdoerr
1 parent 70eec90 commit b8c68c0

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

make/hotspot/lib/JvmOverrideFiles.gmk

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -52,15 +52,23 @@ ifneq ($(FDLIBM_CFLAGS), )
5252
endif
5353

5454
ifeq ($(call isTargetOs, linux), true)
55-
BUILD_LIBJVM_sharedRuntimeTrig.cpp_CXXFLAGS := -DNO_PCH $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG)
56-
BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := -DNO_PCH $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG)
55+
BUILD_LIBJVM_sharedRuntimeTrig.cpp_CXXFLAGS := $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG)
56+
BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := $(FDLIBM_CFLAGS) $(LIBJVM_FDLIBM_COPY_OPT_FLAG)
5757

5858
ifeq ($(TOOLCHAIN_TYPE), clang)
5959
JVM_PRECOMPILED_HEADER_EXCLUDE := \
60-
sharedRuntimeTrig.cpp \
61-
sharedRuntimeTrans.cpp \
60+
sharedRuntimeTrig.cpp \
61+
sharedRuntimeTrans.cpp \
62+
$(OPT_SPEED_SRC) \
63+
#
64+
endif
65+
66+
ifeq ($(call isTargetCpu, ppc64le)+$(TOOLCHAIN_TYPE), true+gcc)
67+
JVM_PRECOMPILED_HEADER_EXCLUDE := \
68+
sharedRuntimeTrig.cpp \
69+
sharedRuntimeTrans.cpp \
6270
$(OPT_SPEED_SRC) \
63-
#
71+
#
6472
endif
6573

6674
ifeq ($(call isTargetCpu, x86), true)

0 commit comments

Comments
 (0)