Skip to content

Commit

Permalink
fix: pre-build is in [build] section
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed May 25, 2024
1 parent 7c13e8a commit f114848
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[build.env]
passthrough = ["RUSTFLAGS"]
[build]
pre-build = [
# https://aws.github.io/aws-lc-rs/requirements/linux.html
"apt-get update",
"apt-get install --assume-yes libclang1",
"cargo install --force --locked bindgen-cli",
]

[build.env]
passthrough = ["RUSTFLAGS"]

[target.x86_64-pc-windows-gnu]
pre-build = [
# Install NASM for rustls, which deps on aws-lc-rs by default, and it needs NASM
Expand Down

0 comments on commit f114848

Please sign in to comment.