forked from microsoft/os-proxy-resolver
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCross.toml
More file actions
35 lines (29 loc) · 1.42 KB
/
Copy pathCross.toml
File metadata and controls
35 lines (29 loc) · 1.42 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
28
29
30
31
32
33
34
35
# Configuration for `cross` (the containerized cross-compilation tool used by
# CI for the ARM Linux targets).
#
# The `pac-engine-wasm2c` feature normally runs the pinned `wasm2c` (WABT
# 1.0.41) from build.rs, but the WABT release binaries need a newer glibc than
# the cross container images ship, so they cannot run inside the container.
# Instead, CI generates the (target-independent) C on the host runner first
# and points the containerized build at it with
# OS_PROXY_RESOLVER_PAC_GUEST_C_DIR — a manifest-relative path, so it stays
# valid across the host/container path mapping. Passing the variable through
# is all the container needs.
[build.env]
passthrough = [
"OS_PROXY_RESOLVER_PAC_GUEST_C_DIR",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS",
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS",
]
# Pin the cross-compilation CI toolchains instead of inheriting whatever images
# a future `cross` release selects. The GNU images use glibc 2.23.
[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5"
[target.aarch64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5"
[target.x86_64-unknown-linux-musl]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5"
[target.aarch64-unknown-linux-musl]
image = "ghcr.io/cross-rs/aarch64-unknown-linux-musl:0.2.5"
[target.armv7-unknown-linux-gnueabihf]
image = "ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:0.2.5"