-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathCross.toml
More file actions
17 lines (15 loc) · 869 Bytes
/
Copy pathCross.toml
File metadata and controls
17 lines (15 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[build.env]
# build.rs reads this to reject a build with no generated pkl sources. Cross
# otherwise filters it out and the guard never reaches build.rs.
passthrough = ["HK_REQUIRE_EMBEDDED_PKL"]
[target.x86_64-unknown-linux-gnu]
# Keep the release artifact compatible with older glibc distributions while
# still running the instrumented binary on the newer CI host for training.
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5"
[target.x86_64-unknown-linux-gnu.env]
# scripts/pgo-bolt.bash sets profile-generate/profile-use and emit-relocs
# through RUSTFLAGS. Cross otherwise filters the variable at the container
# boundary and silently produces an uninstrumented build.
# HK_REQUIRE_EMBEDDED_PKL is repeated from [build.env] in case a target list
# replaces the build one rather than extending it.
passthrough = ["RUSTFLAGS", "HK_REQUIRE_EMBEDDED_PKL"]