mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
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);'
|
-e's;f->vconst |= (vlong)~0 << 32;f->vconst = (vlong)(~0ull << 32);'
|
||||||
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/8g/ggen.c \
|
sed -i ${XBPS_BUILDDIR}/go_bootstrap/src/cmd/8g/ggen.c \
|
||||||
-e's;-1LL<<(t->width\*8-1);~0ULL<<(t->width*8-1);'
|
-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() {
|
do_build() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue