[compiler-rt] 50312ea - [tsan][go] Fix string equal operator
Kai Luo via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 9 18:39:34 PDT 2022
Author: Kai Luo
Date: 2022-10-10T09:39:23+08:00
New Revision: 50312ea133999cb2aad1ab9ef0ec39429a9427c5
URL: https://github.com/llvm/llvm-project/commit/50312ea133999cb2aad1ab9ef0ec39429a9427c5
DIFF: https://github.com/llvm/llvm-project/commit/50312ea133999cb2aad1ab9ef0ec39429a9427c5.diff
LOG: [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
Added:
Modified:
compiler-rt/lib/tsan/go/buildgo.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh
index a53bd0f46d9f5..fcb102c57c0e2 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"
More information about the llvm-commits
mailing list