swc/.cargo/config.toml

48 lines
1.1 KiB
TOML

[build]
rustdocflags = ["--cfg", "docsrs"]
rustflags = ["-Z", "share-generics=y"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+sse2", "-Z", "share-generics=y"]
[target.aarch64-apple-darwin]
rustflags = ["-Z", "share-generics=y"]
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
rustflags = ["-Z", "share-generics=y"]
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = [
"-C",
"target-feature=-crt-static",
"-C",
"link-arg=-lgcc",
"-Z",
"share-generics=y",
]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-Z", "share-generics=y"]
[target.aarch64-linux-android]
rustflags = ["-Z", "share-generics=y"]
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static"]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
linker = "rust-lld"
rustflags = ["-Z", "share-generics=y"]
[target.wasm32-unknown-unknown]
rustflags = ["-Z", "share-generics=y"]