[llvm-commits] [compiler-rt] r160304 - /compiler-rt/trunk/lib/tsan/go/buildgo.sh
Dmitry Vyukov
dvyukov at google.com
Mon Jul 16 11:25:44 PDT 2012
Author: dvyukov
Date: Mon Jul 16 13:25:43 2012
New Revision: 160304
URL: http://llvm.org/viewvc/llvm-project?rev=160304&view=rev
Log:
tsan: add platform suffix to Go runtime library
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=160304&r1=160303&r2=160304&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/buildgo.sh (original)
+++ compiler-rt/trunk/lib/tsan/go/buildgo.sh Mon Jul 16 13:25:43 2012
@@ -3,8 +3,10 @@
if [ "`uname -a | grep Linux`" != "" ]; then
LINUX=1
+ SUFFIX="linux_amd64"
elif [ "`uname -a | grep Darwin`" != "" ]; then
MAC=1
+ SUFFIX="darwin_amd64"
else
echo Unknown platform
exit 1
@@ -67,9 +69,9 @@
echo gcc gotsan.cc -S -o tmp.s $FLAGS $CFLAGS
gcc gotsan.cc -S -o tmp.s $FLAGS $CFLAGS
cat tmp.s $ASMS > gotsan.s
-echo as gotsan.s -o gotsan.syso
-as gotsan.s -o gotsan.syso
+echo as gotsan.s -o gotsan_$SUFFIX.syso
+as gotsan.s -o gotsan_$SUFFIX.syso
-gcc test.c gotsan.syso -lpthread -o test
+gcc test.c gotsan_$SUFFIX.syso -lpthread -o test
./test
More information about the llvm-commits
mailing list