mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
07597795cc
Should resolve https://github.com/swc-project/swc/issues/1351#issuecomment-1283551742 CI passed: https://github.com/swc-project/swc/actions/runs/6217017170
48 lines
1.1 KiB
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"]
|