[compiler-rt] 0e08061 - tsan: update Go rules to use -std=c++17
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 00:32:45 PDT 2022
Author: Fangrui Song
Date: 2022-08-10T00:32:40-07:00
New Revision: 0e08061229aad4ffc6dc2e1790dca2e84964334c
URL: https://github.com/llvm/llvm-project/commit/0e08061229aad4ffc6dc2e1790dca2e84964334c
DIFF: https://github.com/llvm/llvm-project/commit/0e08061229aad4ffc6dc2e1790dca2e84964334c.diff
LOG: tsan: update Go rules to use -std=c++17
llvm-project has switched to require C++17.
Reviewed By: dvyukov
Differential Revision: https://reviews.llvm.org/D131536
Added:
Modified:
compiler-rt/lib/tsan/go/build.bat
compiler-rt/lib/tsan/go/buildgo.sh
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/go/build.bat b/compiler-rt/lib/tsan/go/build.bat
index 34efca6f8dbe5..e34c9bcea60a0 100644
--- a/compiler-rt/lib/tsan/go/build.bat
+++ b/compiler-rt/lib/tsan/go/build.bat
@@ -61,7 +61,7 @@ gcc ^
-O3 ^
-fomit-frame-pointer ^
-msse3 ^
- -std=c++14
+ -std=c++17
rem "-msse3" used above to ensure continued support of older
rem cpus (for now), see https://github.com/golang/go/issues/53743.
diff --git a/compiler-rt/lib/tsan/go/buildgo.sh b/compiler-rt/lib/tsan/go/buildgo.sh
index 2e4ffb646afbc..574419f24ffd0 100755
--- a/compiler-rt/lib/tsan/go/buildgo.sh
+++ b/compiler-rt/lib/tsan/go/buildgo.sh
@@ -176,7 +176,7 @@ for F in $SRCS; do
cat $F
done > $DIR/gotsan.cpp
-FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -std=c++14 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO=1 -DSANITIZER_DEADLOCK_DETECTOR_VERSION=2 $OSCFLAGS $ARCHCFLAGS $EXTRA_CFLAGS"
+FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -std=c++17 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO=1 -DSANITIZER_DEADLOCK_DETECTOR_VERSION=2 $OSCFLAGS $ARCHCFLAGS $EXTRA_CFLAGS"
DEBUG_FLAGS="$FLAGS -DSANITIZER_DEBUG=1 -g"
FLAGS="$FLAGS -DSANITIZER_DEBUG=0 -O3 -fomit-frame-pointer"
More information about the llvm-commits
mailing list