forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig
More file actions
22 lines (18 loc) · 972 Bytes
/
Copy pathconfig
File metadata and controls
22 lines (18 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-rdynamic"]
[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-rdynamic"]
[target.'cfg(target_env = "musl")']
# Because the `cross` Docker container sets `CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER`, the
# `linker` key does not work in this file, so we use `rustflags` instead.
# NOTE: This means that any custom `RUSTFLAGS` variable must include this value!
rustflags = "-Clinker=scripts/cross/wrappers/linker.sh"
# x86_64-specific libstdc++ search path. When building for musl, Cargo will merge this with the
# `rustflags` key above.
[target.x86_64-unknown-linux-musl]
rustflags = "-Lnative=/usr/local/x86_64-linux-musl/lib"
[target.aarch64-unknown-linux-musl]
# Deliberately empty.
# See `scripts/cross/wrappers/{linker,rustc}.sh`.
# Basically, we need to carefully edit the ordering of links.
# Rust doesn't let us have great control of that here, so for now we use those wrappers.