зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1855564 - Switch Firefox builds to macOS 14.0 SDK. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D189430
This commit is contained in:
Родитель
48bd3587bf
Коммит
0984272395
|
@ -96,7 +96,7 @@ with only_when(host_is_osx | target_is_osx):
|
|||
return Version(obj["Version"])
|
||||
|
||||
def sdk_min_version():
|
||||
return "13.3"
|
||||
return "14.0"
|
||||
|
||||
@depends(
|
||||
"--with-macos-sdk",
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Version</key>
|
||||
<string>13.3</string>
|
||||
<string>14.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -29,8 +29,6 @@ macosx64-sdk-13.3:
|
|||
- Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk
|
||||
toolchain-artifact: project/gecko/mac-sdk/MacOSX13.3.sdk.tar.zst
|
||||
toolchain-alias:
|
||||
- macosx64-sdk
|
||||
- macosx64-sdk-toolchain
|
||||
- MacOSX13.3.sdk
|
||||
|
||||
macosx64-sdk-14.0:
|
||||
|
@ -44,4 +42,6 @@ macosx64-sdk-14.0:
|
|||
- Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk
|
||||
toolchain-artifact: project/gecko/mac-sdk/MacOSX14.0.sdk.tar.zst
|
||||
toolchain-alias:
|
||||
- macosx64-sdk
|
||||
- macosx64-sdk-toolchain
|
||||
- MacOSX14.0.sdk
|
||||
|
|
|
@ -34,7 +34,7 @@ case `uname -s` in
|
|||
macosx_version_min=10.12
|
||||
;;
|
||||
esac
|
||||
macosx_sdk=13.3
|
||||
macosx_sdk=14.0
|
||||
# NOTE: both CFLAGS and CPPFLAGS need to be set here, otherwise
|
||||
# configure step fails.
|
||||
sysroot_flags="-isysroot ${MOZ_FETCHES_DIR}/MacOSX${macosx_sdk}.sdk -mmacosx-version-min=${macosx_version_min}"
|
||||
|
|
|
@ -5,7 +5,7 @@ set -e -v
|
|||
|
||||
WORKSPACE=$HOME/workspace
|
||||
|
||||
CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
|
||||
CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.12
|
||||
|
||||
export CC=$MOZ_FETCHES_DIR/clang/bin/clang
|
||||
|
|
|
@ -39,11 +39,11 @@ case "$target" in
|
|||
-DCMAKE_LIPO=$MOZ_FETCHES_DIR/clang/bin/llvm-lipo
|
||||
-DCMAKE_SYSTEM_NAME=Darwin
|
||||
-DCMAKE_SYSTEM_VERSION=$MACOSX_DEPLOYMENT_TARGET
|
||||
-DCMAKE_OSX_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
|
||||
-DCMAKE_OSX_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld
|
||||
-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld
|
||||
-DDARWIN_osx_ARCHS=$arch
|
||||
-DDARWIN_osx_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
|
||||
-DDARWIN_osx_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk
|
||||
-DDARWIN_macosx_OVERRIDE_SDK_VERSION=11.0
|
||||
-DDARWIN_osx_BUILTIN_ARCHS=$arch
|
||||
-DLLVM_DEFAULT_TARGET_TRIPLE=$target
|
||||
|
|
|
@ -38,13 +38,13 @@ case "$1" in
|
|||
macosx64)
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.12
|
||||
TARGET=x86_64-apple-darwin
|
||||
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
|
||||
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk"
|
||||
EXE=
|
||||
;;
|
||||
macosx64-aarch64)
|
||||
export MACOSX_DEPLOYMENT_TARGET=11.0
|
||||
TARGET=aarch64-apple-darwin
|
||||
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
|
||||
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk"
|
||||
EXE=
|
||||
;;
|
||||
*)
|
||||
|
|
|
@ -16,13 +16,13 @@ x86_64-unknown-linux-gnu)
|
|||
x86_64-apple-darwin)
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.12
|
||||
TARGET=$1
|
||||
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
|
||||
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk"
|
||||
EXE=
|
||||
;;
|
||||
aarch64-apple-darwin)
|
||||
export MACOSX_DEPLOYMENT_TARGET=11.0
|
||||
TARGET=$1
|
||||
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
|
||||
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk"
|
||||
EXE=
|
||||
;;
|
||||
x86_64-pc-windows-gnu)
|
||||
|
|
|
@ -31,8 +31,8 @@ x86_64-unknown-linux-gnu)
|
|||
fi
|
||||
export CC="$MOZ_FETCHES_DIR/clang/bin/clang"
|
||||
export CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
|
||||
export TARGET_CFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
|
||||
export TARGET_CXXFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk -stdlib=libc++"
|
||||
export TARGET_CFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk"
|
||||
export TARGET_CXXFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk -stdlib=libc++"
|
||||
;;
|
||||
*-pc-windows-msvc)
|
||||
# Cross-compiling for Windows on Linux.
|
||||
|
|
|
@ -4,5 +4,5 @@ exec $MOZ_FETCHES_DIR/clang/bin/clang -v \
|
|||
-fuse-ld=lld \
|
||||
-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET:-10.12} \
|
||||
-target $TARGET \
|
||||
-isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk \
|
||||
-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk \
|
||||
"$@"
|
||||
|
|
|
@ -3,7 +3,7 @@ set -x -e -v
|
|||
|
||||
export TARGET_TRIPLE="x86_64-apple-darwin"
|
||||
|
||||
MACOS_SYSROOT="${MOZ_FETCHES_DIR}/MacOSX13.3.sdk"
|
||||
MACOS_SYSROOT="${MOZ_FETCHES_DIR}/MacOSX14.0.sdk"
|
||||
CLANGDIR="${MOZ_FETCHES_DIR}/clang"
|
||||
|
||||
# Deploy the wrench dependencies
|
||||
|
|
Загрузка…
Ссылка в новой задаче