tsan: revert: Update buildgo.sh to pass -isysroot on Darwin.
authorDmitry Vyukov <dvyukov@google.com>
Fri, 16 Mar 2018 10:20:58 +0000 (10:20 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 16 Mar 2018 10:20:58 +0000 (10:20 +0000)
This commit breaks actual Go runtime build on gomote builders (10.12) with:

xcode-select: error: tool 'xcodebuild' requires Xcode,
but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance

Without this part build works fine.
The original commit does not include any explanation as to why
it is needed.

llvm-svn: 327700

compiler-rt/lib/tsan/go/buildgo.sh

index 62ff0fc..cef2912 100755 (executable)
@@ -85,7 +85,7 @@ elif [ "`uname -a | grep NetBSD`" != "" ]; then
        "
 elif [ "`uname -a | grep Darwin`" != "" ]; then
        SUFFIX="darwin_amd64"
-       OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option -isysroot $(xcodebuild -version -sdk macosx Path) -mmacosx-version-min=10.7"
+       OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option -mmacosx-version-min=10.7"
        OSLDFLAGS="-lpthread -fPIC -fpie -mmacosx-version-min=10.7"
        SRCS="
                $SRCS