-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxcargo.toml
More file actions
37 lines (30 loc) · 849 Bytes
/
xcargo.toml
File metadata and controls
37 lines (30 loc) · 849 Bytes
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
36
37
[targets]
# All targets supported by cargo-dist for self-hosting
default = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
[targets."x86_64-unknown-linux-musl"]
# Prefer Zig for musl builds (static linking)
# xcargo will auto-detect and use Zig if available
[targets."x86_64-unknown-linux-gnu"]
linker = "x86_64-linux-gnu-gcc"
[targets."x86_64-unknown-linux-gnu".env]
CC = "x86_64-linux-gnu-gcc"
AR = "x86_64-linux-gnu-ar"
[targets."x86_64-pc-windows-gnu"]
linker = "x86_64-w64-mingw32-gcc"
[targets."x86_64-pc-windows-gnu".env]
CC = "x86_64-w64-mingw32-gcc"
AR = "x86_64-w64-mingw32-ar"
[build]
parallel = true
cache = true
cargo_flags = []
[container]
runtime = "auto"
use_when = "target.os != host.os"
pull_policy = "if-not-present"