summaryrefslogtreecommitdiff
path: root/lib/tsan/go
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2015-02-02 23:14:46 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2015-02-02 23:14:46 +0000
commit2508f5cb4167253279f6f2b7749ada771502bd1e (patch)
tree74af8289e8978b129af57a16ed076fab87bc517b /lib/tsan/go
parent3e5299248bf60fcf4af9f074464ffcfc03b01a4e (diff)
[TSan] Fix remaining bashism in buildgo.sh script.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/go')
-rwxr-xr-xlib/tsan/go/buildgo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tsan/go/buildgo.sh b/lib/tsan/go/buildgo.sh
index e6f539e76..e00408cb1 100755
--- a/lib/tsan/go/buildgo.sh
+++ b/lib/tsan/go/buildgo.sh
@@ -1,3 +1,5 @@
+#!/bin/sh
+
set -e
SRCS="
@@ -109,7 +111,7 @@ for F in $SRCS; do
done
FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -std=c++11 -m64 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO -DSANITIZER_DEADLOCK_DETECTOR_VERSION=2 $OSCFLAGS"
-if [ "$DEBUG" == "" ]; then
+if [ "$DEBUG" = "" ]; then
FLAGS="$FLAGS -DSANITIZER_DEBUG=0 -O3 -msse3 -fomit-frame-pointer"
else
FLAGS="$FLAGS -DSANITIZER_DEBUG=1 -g"