Merge mozilla-central to autoland. CLOSED TREE

This commit is contained in:
Norisz Fay 2023-10-02 19:51:56 +03:00
Родитель b642419c68 bcd9d75639
Коммит c6ff2b5a2d
11 изменённых файлов: 16 добавлений и 16 удалений

Просмотреть файл

@ -96,7 +96,7 @@ with only_when(host_is_osx | target_is_osx):
return Version(obj["Version"]) return Version(obj["Version"])
def sdk_min_version(): def sdk_min_version():
return "14.0" return "13.3"
@depends( @depends(
"--with-macos-sdk", "--with-macos-sdk",

Просмотреть файл

@ -3,6 +3,6 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>Version</key> <key>Version</key>
<string>14.0</string> <string>13.3</string>
</dict> </dict>
</plist> </plist>

Просмотреть файл

@ -29,6 +29,8 @@ macosx64-sdk-13.3:
- Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk - Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk
toolchain-artifact: project/gecko/mac-sdk/MacOSX13.3.sdk.tar.zst toolchain-artifact: project/gecko/mac-sdk/MacOSX13.3.sdk.tar.zst
toolchain-alias: toolchain-alias:
- macosx64-sdk
- macosx64-sdk-toolchain
- MacOSX13.3.sdk - MacOSX13.3.sdk
macosx64-sdk-14.0: macosx64-sdk-14.0:
@ -42,6 +44,4 @@ macosx64-sdk-14.0:
- Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk - Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk
toolchain-artifact: project/gecko/mac-sdk/MacOSX14.0.sdk.tar.zst toolchain-artifact: project/gecko/mac-sdk/MacOSX14.0.sdk.tar.zst
toolchain-alias: toolchain-alias:
- macosx64-sdk
- macosx64-sdk-toolchain
- MacOSX14.0.sdk - MacOSX14.0.sdk

Просмотреть файл

@ -34,7 +34,7 @@ case `uname -s` in
macosx_version_min=10.12 macosx_version_min=10.12
;; ;;
esac esac
macosx_sdk=14.0 macosx_sdk=13.3
# NOTE: both CFLAGS and CPPFLAGS need to be set here, otherwise # NOTE: both CFLAGS and CPPFLAGS need to be set here, otherwise
# configure step fails. # configure step fails.
sysroot_flags="-isysroot ${MOZ_FETCHES_DIR}/MacOSX${macosx_sdk}.sdk -mmacosx-version-min=${macosx_version_min}" 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 WORKSPACE=$HOME/workspace
CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
export MACOSX_DEPLOYMENT_TARGET=10.12 export MACOSX_DEPLOYMENT_TARGET=10.12
export CC=$MOZ_FETCHES_DIR/clang/bin/clang 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_LIPO=$MOZ_FETCHES_DIR/clang/bin/llvm-lipo
-DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_NAME=Darwin
-DCMAKE_SYSTEM_VERSION=$MACOSX_DEPLOYMENT_TARGET -DCMAKE_SYSTEM_VERSION=$MACOSX_DEPLOYMENT_TARGET
-DCMAKE_OSX_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk -DCMAKE_OSX_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld
-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld
-DDARWIN_osx_ARCHS=$arch -DDARWIN_osx_ARCHS=$arch
-DDARWIN_osx_SYSROOT=$MOZ_FETCHES_DIR/MacOSX14.0.sdk -DDARWIN_osx_SYSROOT=$MOZ_FETCHES_DIR/MacOSX13.3.sdk
-DDARWIN_macosx_OVERRIDE_SDK_VERSION=11.0 -DDARWIN_macosx_OVERRIDE_SDK_VERSION=11.0
-DDARWIN_osx_BUILTIN_ARCHS=$arch -DDARWIN_osx_BUILTIN_ARCHS=$arch
-DLLVM_DEFAULT_TARGET_TRIPLE=$target -DLLVM_DEFAULT_TARGET_TRIPLE=$target

Просмотреть файл

@ -38,13 +38,13 @@ case "$1" in
macosx64) macosx64)
export MACOSX_DEPLOYMENT_TARGET=10.12 export MACOSX_DEPLOYMENT_TARGET=10.12
TARGET=x86_64-apple-darwin TARGET=x86_64-apple-darwin
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk" CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
EXE= EXE=
;; ;;
macosx64-aarch64) macosx64-aarch64)
export MACOSX_DEPLOYMENT_TARGET=11.0 export MACOSX_DEPLOYMENT_TARGET=11.0
TARGET=aarch64-apple-darwin TARGET=aarch64-apple-darwin
CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk" CC="clang -fuse-ld=lld --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
EXE= EXE=
;; ;;
*) *)

Просмотреть файл

@ -16,13 +16,13 @@ x86_64-unknown-linux-gnu)
x86_64-apple-darwin) x86_64-apple-darwin)
export MACOSX_DEPLOYMENT_TARGET=10.12 export MACOSX_DEPLOYMENT_TARGET=10.12
TARGET=$1 TARGET=$1
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk" CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
EXE= EXE=
;; ;;
aarch64-apple-darwin) aarch64-apple-darwin)
export MACOSX_DEPLOYMENT_TARGET=11.0 export MACOSX_DEPLOYMENT_TARGET=11.0
TARGET=$1 TARGET=$1
CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk" CC="clang --target=$TARGET -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
EXE= EXE=
;; ;;
x86_64-pc-windows-gnu) x86_64-pc-windows-gnu)

Просмотреть файл

@ -31,8 +31,8 @@ x86_64-unknown-linux-gnu)
fi fi
export CC="$MOZ_FETCHES_DIR/clang/bin/clang" export CC="$MOZ_FETCHES_DIR/clang/bin/clang"
export CXX="$MOZ_FETCHES_DIR/clang/bin/clang++" export CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
export TARGET_CFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk" export TARGET_CFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk"
export TARGET_CXXFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk -stdlib=libc++" export TARGET_CXXFLAGS="-isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk -stdlib=libc++"
;; ;;
*-pc-windows-msvc) *-pc-windows-msvc)
# Cross-compiling for Windows on Linux. # Cross-compiling for Windows on Linux.

Просмотреть файл

@ -4,5 +4,5 @@ exec $MOZ_FETCHES_DIR/clang/bin/clang -v \
-fuse-ld=lld \ -fuse-ld=lld \
-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET:-10.12} \ -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET:-10.12} \
-target $TARGET \ -target $TARGET \
-isysroot $MOZ_FETCHES_DIR/MacOSX14.0.sdk \ -isysroot $MOZ_FETCHES_DIR/MacOSX13.3.sdk \
"$@" "$@"

Просмотреть файл

@ -3,7 +3,7 @@ set -x -e -v
export TARGET_TRIPLE="x86_64-apple-darwin" export TARGET_TRIPLE="x86_64-apple-darwin"
MACOS_SYSROOT="${MOZ_FETCHES_DIR}/MacOSX14.0.sdk" MACOS_SYSROOT="${MOZ_FETCHES_DIR}/MacOSX13.3.sdk"
CLANGDIR="${MOZ_FETCHES_DIR}/clang" CLANGDIR="${MOZ_FETCHES_DIR}/clang"
# Deploy the wrench dependencies # Deploy the wrench dependencies