Skip to content

Commit

Permalink
use zig from nix and do not fail build on unused build params (smartc…
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov authored Apr 19, 2024
1 parent 36c5ca6 commit 47c4a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ builds:
post: ./tools/bin/goreleaser_utils build_post_hook {{ dir .Path }} {{ .Os }} {{ .Arch }}
env:
- CGO_ENABLED=1
- CC=$ZIG_EXEC cc -target x86_64-linux-gnu
- CCX=$ZIG_EXEC c++ -target x86_64-linux-gnu
- CC=$ZIG_EXEC cc -target x86_64-linux-gnu -Wno-error=unused-command-line-argument
- CCX=$ZIG_EXEC c++ -target x86_64-linux-gnu -Wno-error=unused-command-line-argument
flags:
- -trimpath
- -buildmode=pie
Expand Down
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ mkShell' {
kubectl
kubernetes-helm

# cross-compiling, used in CRIB
zig

# gofuzz
] ++ lib.optionals stdenv.isLinux [
# some dependencies needed for node-gyp on pnpm install
Expand Down

0 comments on commit 47c4a72

Please sign in to comment.