Current section
Files
Jump to
Current section
Files
native/noise/.cargo/config.toml
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
# Upstream musl targets enable `crt-static` by default, which makes `cdylib` an
# unsupported crate type. A NIF is dlopen'd by the BEAM, so it has to be a
# shared object dynamically linked against the system musl libc.
#
# Matched on `target_env` rather than by triple so this covers every arch and
# both toolchain flavours: rustup's `*-unknown-linux-musl` and Alpine's
# distro-packaged `*-alpine-linux-musl`.
[target.'cfg(target_env = "musl")']
rustflags = ["-C", "target-feature=-crt-static"]