[compiler-rt] r227893 - [TSan] Fix remaining bashism in buildgo.sh script.

Alexey Samsonov vonosmas at gmail.com
Mon Feb 2 15:14:47 PST 2015


Author: samsonov
Date: Mon Feb  2 17:14:46 2015
New Revision: 227893

URL: http://llvm.org/viewvc/llvm-project?rev=227893&view=rev
Log:
[TSan] Fix remaining bashism in buildgo.sh script.

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=227893&r1=227892&r2=227893&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/go/buildgo.sh (original)
+++ compiler-rt/trunk/lib/tsan/go/buildgo.sh Mon Feb  2 17:14:46 2015
@@ -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"





More information about the llvm-commits mailing list