diff options
author | fanquake <fanquake@gmail.com> | 2022-03-10 11:14:26 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-03-10 11:14:26 +0000 |
commit | e8023100be7ab2e32addfff75a133fb429b8492b (patch) | |
tree | df690e1fffc4637c3b99557dfe42e989b11bcc4c /contrib/guix/guix-build | |
parent | 05957a888de98aa4b946b62747030d6c77cac488 (diff) |
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.
Diffstat (limited to 'contrib/guix/guix-build')
-rwxr-xr-x | contrib/guix/guix-build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/guix/guix-build b/contrib/guix/guix-build index 3f14be7fdd..c8f2e40f0a 100755 --- a/contrib/guix/guix-build +++ b/contrib/guix/guix-build @@ -121,7 +121,7 @@ else fi ################ -# When building for darwin, the macOS SDK should exists +# When building for darwin, the macOS SDK should exist ################ for host in $HOSTS; do @@ -130,6 +130,7 @@ for host in $HOSTS; do OSX_SDK="$(make -C "${PWD}/depends" --no-print-directory HOST="$host" print-OSX_SDK | sed 's@^[^=]\+=@@g')" if [ -e "$OSX_SDK" ]; then echo "Found macOS SDK at '${OSX_SDK}', using..." + break else echo "macOS SDK does not exist at '${OSX_SDK}', please place the extracted, untarred SDK there to perform darwin builds, exiting..." exit 1 |