swc/.cargo/config.toml

42 lines
929 B
TOML
Raw Normal View History

[env]
CARGO_WORKSPACE_DIR = { value = "", relative = true }
2023-10-05 11:34:51 +03:00
[alias]
bump = "run --package swc-releaser -- bump"
codegen = "run --package generate-code --"
releaser = "run --package swc-releaser --"
xtask = "run --package xtask --"
[build]
rustdocflags = ["--cfg", "docsrs"]
rustflags = ["-Zshare-generics=y"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+sse2", "-Zshare-generics=y"]
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
2021-11-30 02:34:20 +03:00
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = [
"-C",
"target-feature=-crt-static",
"-C",
"link-arg=-lgcc",
"-Zshare-generics=y",
]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
[target.x86_64-pc-windows-msvc]
2023-10-05 11:34:51 +03:00
linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static", "-Zshare-generics=y"]
[target.aarch64-pc-windows-msvc]
linker = "rust-lld"