forked from F1R3FLY-io/f1r3node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCross.toml
More file actions
27 lines (24 loc) · 1.3 KB
/
Cross.toml
File metadata and controls
27 lines (24 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
pre-build = [
"dpkg --add-architecture arm64",
"apt-get update",
"apt-get install -y protobuf-compiler pkg-config libssl-dev:arm64",
# https://github.com/sfackler/rust-openssl/issues/2217#issuecomment-2230398481
"ln -s /usr/include/aarch64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h",
"ln -s /usr/include/aarch64-linux-gnu/openssl/configuration.h /usr/include/openssl/configuration.h",
]
[target.aarch64-unknown-linux-gnu.env]
# Enable AES/NEON CPU features for gxhash dependency (required by PathMap crate)
passthrough = ["RUSTFLAGS=-C target-feature=+aes,+neon"]
[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main"
pre-build = [
"apt-get update && apt-get install -y protobuf-compiler pkg-config libssl-dev",
# https://github.com/sfackler/rust-openssl/issues/2217#issuecomment-2230398481
"ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h",
"ln -s /usr/include/x86_64-linux-gnu/openssl/configuration.h /usr/include/openssl/configuration.h",
]
[target.x86_64-unknown-linux-gnu.env]
# Enable AES/SSE2 CPU features for gxhash dependency (required by PathMap crate)
passthrough = ["RUSTFLAGS=-C target-feature=+aes,+sse2"]