go: fix bootstrap with gcc7
This commit is contained in:
parent
7b2ea00143
commit
ace7a1e4a5
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ do_extract() {
|
|||
-e's;f->vconst |= (vlong)~0 << 32;f->vconst = (vlong)(~0ull << 32);'
|
||||
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/8g/ggen.c \
|
||||
-e's;-1LL<<(t->width\*8-1);~0ULL<<(t->width*8-1);'
|
||||
|
||||
# Disable gcc7 fallthrough warnings
|
||||
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/make.bash \
|
||||
-e's;-Werror;-Werror -Wimplicit-fallthrough=0;'
|
||||
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/dist/build.c \
|
||||
-e's;"-Werror",;"-Werror", "-Wimplicit-fallthrough=0",;'
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue