mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
guix: guix-start
should respect SDK_PATH
This commit is contained in:
parent
ee5f62b0db
commit
87c978605e
@ -17,11 +17,12 @@ XCODE_VERSION="12.2"
|
|||||||
XCODE_RELEASE="12B45b"
|
XCODE_RELEASE="12B45b"
|
||||||
XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers"
|
XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers"
|
||||||
|
|
||||||
|
export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}"
|
||||||
|
|
||||||
# Check if macOS SDK is present, if not, download it
|
# Check if macOS SDK is present, if not, download it
|
||||||
if [ ! -d "${WORKSPACE_PATH}/depends/SDKs/${XCODE_ARCHIVE}" ]
|
if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
|
||||||
then
|
mkdir -p "${SDK_PATH}"
|
||||||
mkdir -p "${WORKSPACE_PATH}/depends/SDKs"
|
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
|
||||||
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${WORKSPACE_PATH}/depends/SDKs"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${WORKSPACE_PATH}"
|
cd "${WORKSPACE_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user