Skip to content

Commit

Permalink
Only pass +crt-static to cargo build (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Oct 14, 2021
1 parent 9ed2c5f commit a306a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ${{matrix.os}}

env:
RUSTFLAGS: --deny warnings --codegen target-feature=+crt-static
RUSTFLAGS: --deny warnings

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ echo "Packaging $bin $version for $target..."
test -f Cargo.lock || cargo generate-lockfile

echo "Building $bin..."
cargo build --bin $bin --target $target --release
RUSTFLAGS='--deny warnings --codegen target-feature=+crt-static' \
cargo build --bin $bin --target $target --release
executable=target/$target/release/$bin

if [[ $os == windows-2016 ]]; then
Expand Down

0 comments on commit a306a47

Please sign in to comment.