瀏覽代碼

Don't fail the build if `xcodebuild` fails (#3302)

pull/3303/head
native-api 11 月之前
committed by GitHub
父節點
當前提交
10675af5a6
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      plugins/python-build/bin/python-build

+ 1
- 1
plugins/python-build/bin/python-build 查看文件

@ -1831,7 +1831,7 @@ use_xcode_sdk_zlib() {
[[ "${CC:-clang}" != "clang" || "$(command -v clang 2>/dev/null || true)" != "/usr/bin/clang" ]] && return 1
# The flags set by this function break the build in XCode 16 due to unknown changes from XCode 15
# For future-proofing, also disable it if we cannot determine the version
[[ $(xcodebuild -version) =~ ^Xcode\ ([[:digit:]]+) ]] && xcode_major="${BASH_REMATCH[1]}"
[[ $(xcodebuild -version 2>/dev/null || true) =~ ^Xcode\ ([[:digit:]]+) ]] && xcode_major="${BASH_REMATCH[1]}"
[[ -z $xcode_major || $xcode_major -ge 16 ]] && return 1
local xc_sdk_path="$(xcrun --show-sdk-path 2>/dev/null || true)"
if [ -d "$xc_sdk_path" ]; then

Loading…
取消
儲存