From 50312ea133999cb2aad1ab9ef0ec39429a9427c5 Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Mon, 10 Oct 2022 09:38:38 +0800 Subject: [PATCH] [tsan][go] Fix string equal operator Fixed error ``` compiler-rt/lib/tsan/go/buildgo.sh: 62: [: unexpected operator ``` Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D135537 --- compiler-rt/lib/tsan/go/buildgo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh index a53bd0f46d9f..fcb102c57c0e 100755 --- a/compiler-rt/lib/tsan/go/buildgo.sh +++ b/compiler-rt/lib/tsan/go/buildgo.sh @@ -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"