Skip to content

Commit

Permalink
toolchain: Fix builds with GCC 7.4.0 and 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Jan 5, 2019
1 parent 94bdf32 commit a382cc2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build-rr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,18 @@ buildrump ()

# Disable new errors on GCC 7 which break netbsd-src compilation
#
[ `gcc -dumpversion | cut -f1 -d.` -ge 7 ] \
&& extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0"
[ `${CC} -dumpversion | cut -f1 -d.` -ge 7 ] \
&& extracflags="$extracflags -F CPPFLAGS=-Wimplicit-fallthrough=0" \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=maybe-uninitialized" \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=implicit-function-declaration"

# Disable new errors on GCC 8 which break netbsd-src compilation
#
[ `${CC} -dumpversion | cut -f1 -d.` -ge 8 ] \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=packed-not-aligned" \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=cast-function-type" \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=tautological-compare" \
&& extracflags="$extracflags -F CFLAGS=-Wno-error=attributes"

# build tools
${BUILDRUMP}/buildrump.sh ${BUILD_QUIET} ${STDJ} -k \
Expand Down

0 comments on commit a382cc2

Please sign in to comment.