Skip to content

Commit 41c135d

Browse files
committed
Fix buildgo.sh script to fix linux build failure due to changes in ad1466f.
The above change used a binary literal that is not supported in c++11 mode when using gcc. It was formalized into the c++14 standard and works when using that mode to compile, so change the script to use c++14 instead. Reviewed by: dvyukov Differential Revision: https://reviews.llvm.org/D77111
1 parent 21d9d08 commit 41c135d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ for F in $SRCS; do
149149
cat $F >> $DIR/gotsan.cpp
150150
done
151151

152-
FLAGS=" -I../rtl -I../.. -I../../sanitizer_common -I../../../include -std=c++11 -Wall -fno-exceptions -fno-rtti -DSANITIZER_GO=1 -DSANITIZER_DEADLOCK_DETECTOR_VERSION=2 $OSCFLAGS $ARCHCFLAGS"
152+
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"
153153
DEBUG_FLAGS="$FLAGS -DSANITIZER_DEBUG=1 -g"
154154
FLAGS="$FLAGS -DSANITIZER_DEBUG=0 -O3 -fomit-frame-pointer"
155155
if [ "$SUFFIX" = "linux_ppc64le" ]; then

0 commit comments

Comments
 (0)