Skip to content

Commit

Permalink
chore: Sync publish script with the main swc repo (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jan 17, 2024
1 parent cd6d1cd commit afd618a
Show file tree
Hide file tree
Showing 20 changed files with 2,515 additions and 2,262 deletions.
18 changes: 17 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
[alias]
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"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=-crt-static", "-C", "link-arg=-lgcc"]
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]
linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static", "-Zshare-generics=y"]


[target.aarch64-pc-windows-msvc]
linker = "rust-lld"
Loading

0 comments on commit afd618a

Please sign in to comment.