Skip to content

Commit

Permalink
Add Cross config to work around cross-rs/cross#1345
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jan 5, 2025
1 parent e2381d5 commit f008540
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[build.env]
passthrough = ["GITHUB_TOKEN"]

# workaround for https://github.com/cross-rs/cross/issues/1345
[target.x86_64-unknown-netbsd]
pre-build = [
"mkdir -p /tmp/netbsd",
"curl https://archive.netbsd.org/pub/NetBSD-archive/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O",
"tar -C /tmp/netbsd -xJf base.tar.xz",
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib",
"rm base.tar.xz",
"rm -rf /tmp/netbsd",
]

0 comments on commit f008540

Please sign in to comment.