From afbde43a8fe3a6b601a32b04c648bad09109e6c8 Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Fri, 7 Jul 2017 21:17:29 +0000 Subject: [PATCH] Update buildgo.sh to pass -isysroot on Darwin. llvm-svn: 307443 --- compiler-rt/lib/tsan/go/buildgo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh index 5917680..617dd9e 100755 --- a/compiler-rt/lib/tsan/go/buildgo.sh +++ b/compiler-rt/lib/tsan/go/buildgo.sh @@ -69,7 +69,7 @@ elif [ "`uname -a | grep FreeBSD`" != "" ]; then " elif [ "`uname -a | grep Darwin`" != "" ]; then SUFFIX="darwin_amd64" - OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option -mmacosx-version-min=10.7" + OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option -isysroot $(xcodebuild -version -sdk macosx Path) -mmacosx-version-min=10.7" OSLDFLAGS="-lpthread -fPIC -fpie -mmacosx-version-min=10.7" SRCS=" $SRCS -- 2.7.4