Skip to content

Commit fef39cc

Browse files
committed
[tsan] Another attempt to fix GCC 8.3 build after D107911
This removes the -Werror compilation flag for x64 linux to work around a gcc bug. GCC 8.3 reports '__tsan::v3::Event::type’ is too small to hold all values of ‘enum class __tsan::v3::EventType’ incorrectly which gets promoted to an error and causes the build to fail.
1 parent 5a95ff2 commit fef39cc

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
@@ -59,7 +59,7 @@ if [ "`uname -a | grep Linux`" != "" ]; then
5959
elif [ "`uname -a | grep x86_64`" != "" ]; then
6060
SUFFIX="linux_amd64"
6161
ARCHCFLAGS="-m64 -msse4.2"
62-
OSCFLAGS="$OSCFLAGS -ffreestanding -Wno-unused-const-variable -Werror -Wno-unknown-warning-option"
62+
OSCFLAGS="$OSCFLAGS -ffreestanding -Wno-unused-const-variable -Wno-unknown-warning-option"
6363
elif [ "`uname -a | grep aarch64`" != "" ]; then
6464
SUFFIX="linux_arm64"
6565
ARCHCFLAGS=""

0 commit comments

Comments
 (0)