[tsan][go] Fix buildgo.sh when GOAMD64 undefined
authorVitaly Buka <vitalybuka@google.com>
Tue, 6 Sep 2022 20:00:57 +0000 (13:00 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 6 Sep 2022 20:02:11 +0000 (13:02 -0700)
compiler-rt/lib/tsan/go/buildgo.sh

index ba9aff2..a53bd0f 100755 (executable)
@@ -59,7 +59,7 @@ if [ "`uname -a | grep Linux`" != "" ]; then
                ARCHCFLAGS="-m64 -mcpu=power8 -fno-function-sections"
        elif [ "`uname -a | grep x86_64`" != "" ]; then
                SUFFIX="linux_amd64"
-               if [ $GOAMD64 == "v3" ]; then
+               if [ "$GOAMD64" == "v3" ]; then
                        ARCHCFLAGS="-m64 -msse4.2"
                else
                        ARCHCFLAGS="-m64 -msse3"