[compiler-rt] r271833 - [tsan] On OS X, build Go runtime with -mmacosx-version-min

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 08:15:45 PDT 2016


Author: kuba.brecka
Date: Sun Jun  5 10:15:36 2016
New Revision: 271833

URL: http://llvm.org/viewvc/llvm-project?rev=271833&view=rev
Log:
[tsan] On OS X, build Go runtime with -mmacosx-version-min

We're not building the Go runtime with -mmacosx-version-min, which means it'll have a minimum deployment target set to the system you're building on. Let's make the code compile (and link) with -mmacosx-version-min=10.7.

Differential Revision: http://reviews.llvm.org/D20670


Modified:
    compiler-rt/trunk/lib/tsan/go/buildgo.sh

Modified: compiler-rt/trunk/lib/tsan/go/buildgo.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/go/buildgo.sh?rev=271833&r1=271832&r2=271833&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/buildgo.sh (original)
+++ compiler-rt/trunk/lib/tsan/go/buildgo.sh Sun Jun  5 10:15:36 2016
@@ -68,8 +68,8 @@ elif [ "`uname -a | grep FreeBSD`" != ""
 	"
 elif [ "`uname -a | grep Darwin`" != "" ]; then
 	SUFFIX="darwin_amd64"
-	OSCFLAGS="-fPIC -Wno-unused-const-variable -Wno-unknown-warning-option"
-	OSLDFLAGS="-lpthread -fPIC -fpie"
+	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
 		../rtl/tsan_platform_mac.cc




More information about the llvm-commits mailing list