[TSan] Fix remaining bashism in buildgo.sh script.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Feb 2015 23:14:46 +0000 (23:14 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 2 Feb 2015 23:14:46 +0000 (23:14 +0000)
llvm-svn: 227893

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

index e6f539e..e00408c 100755 (executable)
@@ -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"