From 498d8dadbf71b96f9b2a82e449c848acf1ed03f5 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Thu, 25 Aug 2016 15:42:39 -0400 Subject: [PATCH] Check for OSX SDK --- contrib/gitian-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/gitian-build.sh b/contrib/gitian-build.sh index b51a91fdc0..7baaabee6d 100755 --- a/contrib/gitian-build.sh +++ b/contrib/gitian-build.sh @@ -166,6 +166,13 @@ then sudo ifconfig lxcbr0 up 10.0.2.2 fi +# Check for OSX SDK +if [[ ! -e "gitian-builder/inputs/MacOSX10.11.sdk.tar.gz" && $osx == true ]] +then + echo "Cannot build for OSX, SDK does not exist. Will build for other OSes" + osx=false +fi + # Get signer if [[ -n"$1" ]] then