Skip to content

Commit e802310

Browse files
committed
guix: only check for the macOS SDK once
If we are building for both macOS HOSTS, there's no need to check and print that the SDK exists two times.
1 parent 05957a8 commit e802310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/guix/guix-build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ else
121121
fi
122122

123123
################
124-
# When building for darwin, the macOS SDK should exists
124+
# When building for darwin, the macOS SDK should exist
125125
################
126126

127127
for host in $HOSTS; do
@@ -130,6 +130,7 @@ for host in $HOSTS; do
130130
OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+=@@g')"
131131
if [ -e "$OSX_SDK" ]; then
132132
echo "Found macOS SDK at '${OSX_SDK}', using..."
133+
break
133134
else
134135
echo "macOS SDK does not exist at '${OSX_SDK}', please place the extracted, untarred SDK there to perform darwin builds, exiting..."
135136
exit 1

0 commit comments

Comments
 (0)