Skip to content

Commit

Permalink
Try Wno-deprecated-non-prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Apr 20, 2023
1 parent 776ce5e commit 7a981f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ jobs:
- name: Set up zig
if: ${{ contains(matrix.os, 'ubuntu') }}
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.9.1 # Avoiding zig issue 13385 by downgrading -- upgrade to 0.11.0 when available

- name: Build
run: make -j2 github-build
Expand Down
2 changes: 2 additions & 0 deletions pkg/make/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ func (b *Builder) BuildCmd(src, appName string) func(context.Context) error {

cmd := b.execCC(ctx, b.goPath, args...)
cmd.Env = append(cmd.Env, b.cmdEnv...)
// See zig issue #13385 -- once we upgrade to 0.11.0, we should be able to remove this
cmd.Env = append(cmd.Env, "CGO_CFLAGS=-Wno-deprecated-non-prototype")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr

Expand Down

0 comments on commit 7a981f6

Please sign in to comment.