Skip to content

Commit b03c019

Browse files
committed
8317970: Bump target macosx-x64 version to 11.00.00
Backport-of: 72c4dcb
1 parent 3c17462 commit b03c019

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
@@ -446,7 +446,7 @@ var getJibProfilesProfiles = function (input, common, data) {
446446
target_cpu: "x64",
447447
dependencies: ["devkit", "gtest", "pandoc"],
448448
configure_args: concat(common.configure_args_64bit, "--with-zlib=system",
449-
"--with-macosx-version-max=10.12.00",
449+
"--with-macosx-version-max=11.00.00",
450450
"--enable-compatible-cds-alignment",
451451
// Use system SetFile instead of the one in the devkit as the
452452
// 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
@@ -870,19 +870,6 @@ endif
870870

871871
################################################################################
872872

873-
# MACOSX_METAL_VERSION_MIN specifies the lowest version of Macosx
874-
# that should be used to compile Metal shaders. We support Metal
875-
# pipeline only on Macosx >=10.14. For Macosx versions <10.14 even if
876-
# we enable Metal pipeline using -Dsun.java2d.metal=true, at
877-
# runtime we force it to use OpenGL pipeline. And MACOSX_VERSION_MIN
878-
# for aarch64 has always been >10.14 so we use continue to use
879-
# MACOSX_VERSION_MIN for aarch64.
880-
ifeq ($(OPENJDK_TARGET_CPU_ARCH), xaarch64)
881-
MACOSX_METAL_VERSION_MIN=$(MACOSX_VERSION_MIN)
882-
else
883-
MACOSX_METAL_VERSION_MIN=10.14.0
884-
endif
885-
886873
ifeq ($(call isTargetOs, macosx), true)
887874
SHADERS_SRC := $(TOPDIR)/src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/shaders.metal
888875
SHADERS_SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/native/java.desktop/libosxui
@@ -895,7 +882,7 @@ ifeq ($(call isTargetOs, macosx), true)
895882
OUTPUT_FILE := $(SHADERS_AIR), \
896883
SUPPORT_DIR := $(SHADERS_SUPPORT_DIR), \
897884
COMMAND := $(METAL) -c -std=osx-metal2.0 \
898-
-mmacosx-version-min=$(MACOSX_METAL_VERSION_MIN) \
885+
-mmacosx-version-min=$(MACOSX_VERSION_MIN) \
899886
-o $(SHADERS_AIR) $(SHADERS_SRC), \
900887
))
901888

0 commit comments

Comments
 (0)