Files

14 lines
857 B
Bash
Executable File

# Sourced by the other scripts. The Command Line Tools swift is broken on this
# machine and so is xcodebuild, so we compile with Xcode's toolchain directly.
XCODE_DEV=/Applications/Xcode.app/Contents/Developer
export PATH=$XCODE_DEV/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH
export SDKROOT=$XCODE_DEV/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
# DEVELOPER_DIR points at the Command Line Tools on purpose: with Xcode's
# developer dir, /usr/bin/xcrun and /usr/bin/git ask the broken xcodebuild for
# every lookup. SwiftPM then cannot read the manifest API's deployment target,
# falls back to macOS 11, and fails to compile swift-argument-parser's plugin.
export DEVELOPER_DIR=/Library/Developer/CommandLineTools
PLATFORM_DEV=$XCODE_DEV/Platforms/MacOSX.platform/Developer
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"