[TSan] Fix remaining bashism in buildgo.sh script.

llvm-svn: 227893
This commit is contained in:
Alexey Samsonov 2015-02-02 23:14:46 +00:00
parent 88de3d7284
commit ec80d97c77
1 changed files with 3 additions and 1 deletions

View File

@ -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"