tsan: update Go rules to use -std=c++17
authorFangrui Song <i@maskray.me>
Wed, 10 Aug 2022 07:32:40 +0000 (00:32 -0700)
committerFangrui Song <i@maskray.me>
Wed, 10 Aug 2022 07:32:40 +0000 (00:32 -0700)
llvm-project has switched to require C++17.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D131536

compiler-rt/lib/tsan/go/build.bat
compiler-rt/lib/tsan/go/buildgo.sh

index 34efca6..e34c9bc 100644 (file)
@@ -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.
index 2e4ffb6..574419f 100755 (executable)
@@ -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"