Skip to content

Commit 2e594b6

Browse files
committed
8317970: Bump target macosx-x64 version to 11.00.00
Backport-of: 72c4dcb
1 parent 5c2ab8e commit 2e594b6

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed

make/autoconf/flags.m4

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, 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
@@ -128,16 +128,12 @@ AC_DEFUN([FLAGS_SETUP_MACOSX_VERSION],
128128
# The expected format for <version> is either nn.n.n or nn.nn.nn. See
129129
# /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityVersions.h
130130
131-
# MACOSX_VERSION_MIN specifies the lowest version of Macosx that the built
131+
# MACOSX_VERSION_MIN specifies the lowest version of macOS that the built
132132
# binaries should be compatible with, even if compiled on a newer version
133133
# of the OS. It currently has a hard coded value. Setting this also limits
134134
# exposure to API changes in header files. Bumping this is likely to
135135
# require code changes to build.
136-
if test "x$OPENJDK_TARGET_CPU_ARCH" = xaarch64; then
137-
MACOSX_VERSION_MIN=11.00.00
138-
else
139-
MACOSX_VERSION_MIN=10.12.0
140-
fi
136+
MACOSX_VERSION_MIN=11.00.00
141137
MACOSX_VERSION_MIN_NODOTS=${MACOSX_VERSION_MIN//\./}
142138
143139
AC_SUBST(MACOSX_VERSION_MIN)

make/conf/jib-profiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ var getJibProfilesProfiles = function (input, common, data) {
436436
target_cpu: "x64",
437437
dependencies: ["devkit", "gtest", "pandoc"],
438438
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
439-
"--with-macosx-version-max=10.12.00",
439+
"--with-macosx-version-max=11.00.00",
440440
"--enable-compatible-cds-alignment",
441441
// Use system SetFile instead of the one in the devkit as the
442442
// devkit one may not work on Catalina.

make/modules/java.desktop/lib/Awt2dLibraries.gmk

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -910,19 +910,6 @@ endif
910910

911911
################################################################################
912912

913-
# MACOSX_METAL_VERSION_MIN specifies the lowest version of Macosx
914-
# that should be used to compile Metal shaders. We support Metal
915-
# pipeline only on Macosx >=10.14. For Macosx versions <10.14 even if
916-
# we enable Metal pipeline using -Dsun.java2d.metal=true, at
917-
# runtime we force it to use OpenGL pipeline. And MACOSX_VERSION_MIN
918-
# for aarch64 has always been >10.14 so we use continue to use
919-
# MACOSX_VERSION_MIN for aarch64.
920-
ifeq ($(OPENJDK_TARGET_CPU_ARCH), xaarch64)
921-
MACOSX_METAL_VERSION_MIN=$(MACOSX_VERSION_MIN)
922-
else
923-
MACOSX_METAL_VERSION_MIN=10.14.0
924-
endif
925-
926913
ifeq ($(call isTargetOs, macosx), true)
927914
SHADERS_SRC := $(TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/shaders.metal
928915
SHADERS_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/native/java.desktop/libosxui
@@ -935,7 +922,7 @@ ifeq ($(call isTargetOs, macosx), true)
935922
OUTPUT_FILE := $(SHADERS_AIR), \
936923
SUPPORT_DIR := $(SHADERS_SUPPORT_DIR), \
937924
COMMAND := $(METAL) -c -std=osx-metal2.0 \
938-
-mmacosx-version-min=$(MACOSX_METAL_VERSION_MIN) \
925+
-mmacosx-version-min=$(MACOSX_VERSION_MIN) \
939926
-o $(SHADERS_AIR) $(SHADERS_SRC), \
940927
))
941928

0 commit comments

Comments
 (0)