Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions AG/generate_swiftinterface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,22 @@ fi
# scratch path for this nested build so update-xcframeworks does not deadlock.
SWIFTPM_BUILD_LOG=$(mktemp)
mkdir -p "${SWIFTPM_CACHE_PATH}"
if ! swift build --disable-sandbox --package-path "${PACKAGE_DIR}" --cache-path "${SWIFTPM_CACHE_PATH}" --scratch-path "${SWIFTPM_SCRATCH_PATH}" --target _AttributeGraphDeviceSwiftShims 2>"${SWIFTPM_BUILD_LOG}"; then
SWIFTPM_BUILD_FLAGS=(
--disable-sandbox
--package-path "${PACKAGE_DIR}"
--cache-path "${SWIFTPM_CACHE_PATH}"
--scratch-path "${SWIFTPM_SCRATCH_PATH}"
--skip-update
--disable-automatic-resolution
)
if ! swift build "${SWIFTPM_BUILD_FLAGS[@]}" --target _AttributeGraphDeviceSwiftShims 2>"${SWIFTPM_BUILD_LOG}"; then
cat "${SWIFTPM_BUILD_LOG}" >&2
echo "Error: failed to build package dependencies"
exit 1
fi

# Locate the SPM modules directory for import search paths
if ! BUILD_BIN_PATH=$(swift build --disable-sandbox --package-path "${PACKAGE_DIR}" --cache-path "${SWIFTPM_CACHE_PATH}" --scratch-path "${SWIFTPM_SCRATCH_PATH}" --show-bin-path 2>"${SWIFTPM_BUILD_LOG}"); then
if ! BUILD_BIN_PATH=$(swift build "${SWIFTPM_BUILD_FLAGS[@]}" --show-bin-path 2>"${SWIFTPM_BUILD_LOG}"); then
cat "${SWIFTPM_BUILD_LOG}" >&2
echo "Error: failed to locate package build directory"
exit 1
Expand Down
12 changes: 10 additions & 2 deletions GF/generate_swiftinterface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,22 @@ fi
# scratch path for this nested build so update-xcframeworks does not deadlock.
SWIFTPM_BUILD_LOG=$(mktemp)
mkdir -p "${SWIFTPM_CACHE_PATH}"
if ! swift build --disable-sandbox --package-path "${PACKAGE_DIR}" --cache-path "${SWIFTPM_CACHE_PATH}" --scratch-path "${SWIFTPM_SCRATCH_PATH}" --target _GesturesDeviceSwiftShims 2>"${SWIFTPM_BUILD_LOG}"; then
SWIFTPM_BUILD_FLAGS=(
--disable-sandbox
--package-path "${PACKAGE_DIR}"
--cache-path "${SWIFTPM_CACHE_PATH}"
--scratch-path "${SWIFTPM_SCRATCH_PATH}"
--skip-update
--disable-automatic-resolution
)
if ! swift build "${SWIFTPM_BUILD_FLAGS[@]}" --target _GesturesDeviceSwiftShims 2>"${SWIFTPM_BUILD_LOG}"; then
cat "${SWIFTPM_BUILD_LOG}" >&2
echo "Error: failed to build package dependencies"
exit 1
fi

# Locate the SPM modules directory for import search paths
if ! BUILD_BIN_PATH=$(swift build --disable-sandbox --package-path "${PACKAGE_DIR}" --cache-path "${SWIFTPM_CACHE_PATH}" --scratch-path "${SWIFTPM_SCRATCH_PATH}" --show-bin-path 2>"${SWIFTPM_BUILD_LOG}"); then
if ! BUILD_BIN_PATH=$(swift build "${SWIFTPM_BUILD_FLAGS[@]}" --show-bin-path 2>"${SWIFTPM_BUILD_LOG}"); then
cat "${SWIFTPM_BUILD_LOG}" >&2
echo "Error: failed to locate package build directory"
exit 1
Expand Down
Loading