Changeset View
Changeset View
Standalone View
Standalone View
contrib/guix/guix-build
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
################ | ################ | ||||
# When building for darwin, the macOS SDK should exist | # When building for darwin, the macOS SDK should exist | ||||
################ | ################ | ||||
for host in $HOSTS; do | for host in $HOSTS; do | ||||
case "$host" in | case "$host" in | ||||
*darwin*) | *darwin*) | ||||
OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+= @@g')" | OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+=@@g')" | ||||
if [ -e "$OSX_SDK" ]; then | if [ -e "$OSX_SDK" ]; then | ||||
echo "Found macOS SDK at '${OSX_SDK}', using..." | echo "Found macOS SDK at '${OSX_SDK}', using..." | ||||
break | break | ||||
else | else | ||||
echo "macOS SDK does not exist at '${OSX_SDK}', please place the extracted, untarred SDK there to perform darwin builds, or define SDK_PATH environment variable. Exiting..." | echo "macOS SDK does not exist at '${OSX_SDK}', please place the extracted, untarred SDK there to perform darwin builds, or define SDK_PATH environment variable. Exiting..." | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
;; | ;; | ||||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |