forked from shadowsocks/shadowsocks-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCross.toml
More file actions
45 lines (42 loc) · 1.92 KB
/
Copy pathCross.toml
File metadata and controls
45 lines (42 loc) · 1.92 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
36
37
38
39
40
41
42
43
44
45
[build]
# dockerfile = "./docker/linux-cross/Dockerfile"
# pre-build = [
# "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable",
# ". $HOME/.cargo/env",
# "cargo install --force --locked bindgen-cli && mv $HOME/.cargo/bin/bindgen /usr/bin",
# "rm -rf $HOME/.cargo"
# ]
# pre-build = [
# "apt update",
# "apt install --assume-yes --no-install-recommends build-essential llvm-8-dev libclang-8-dev clang-8",
# ]
[build.env]
passthrough = ["RUSTFLAGS"]
# NetBSD 9 (used by cross-rs's x86_64-unknown-netbsd image) lacks the
# `getentropy` symbol that `aws-lc-sys` references. `getentropy`/`getrandom`
# were added in NetBSD 10.0. We provide a small static shim backed by
# `sysctl(CTL_KERN, KERN_ARND)` (the same mechanism NetBSD 9's own
# arc4random uses) and make it available to the linker via `RUSTFLAGS`.
[target.x86_64-unknown-netbsd]
pre-build = "./build/netbsd-getentropy-shim.sh"
[target.x86_64-unknown-netbsd.env]
passthrough = ["RUSTFLAGS=-C link-arg=-L/usr/local/x86_64-unknown-netbsd/shimlib -C link-arg=-lgetentropy_shim"]
# MIPS targets are dropped to Tier 3
# https://github.com/rust-lang/compiler-team/issues/648
# FIXME: build-std with sequence is supported only on git
[target.mips-unknown-linux-gnu]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mips-unknown-linux-musl]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mips64-unknown-linux-gnuabi64]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mips64-unknown-linux-muslabi64]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mips64el-unknown-linux-gnuabi64]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mips64el-unknown-linux-muslabi64]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mipsel-unknown-linux-gnu]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mipsel-unknown-linux-musl]
build-std = ["std", "panic_abort", "proc_macro"]