Skip to content

Commit

Permalink
misc: fix win build
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Griffon <anthony@griffon.one>
  • Loading branch information
Miaxos committed Nov 29, 2023
1 parent b21ee8a commit d21e61f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
24 changes: 11 additions & 13 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
[target.'cfg(any(unix, not(unix))']
rustflags = ["-Zmacro-backtrace", "-Zdebug-macros", "-Zthreads=8"]

[target.x86_64-unknown-linux-gnu]
rustflags = [
"-Zmacro-backtrace",
"-Zdebug-macros",
"-Zthreads=8"
]
rustflags = []

[target.aarch64-apple-darwin]
rustflags = [ ]

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.x86_64-unknown-linux-musl]
rustflags = [
"-Zmacro-backtrace",
"-Zdebug-macros",
"-Zthreads=8",
"--cfg",
"tokio_unstable"
"-C", "target-feature=+crt-static",
"-C", "link-self-contained=yes",
]

[term]
Expand Down
6 changes: 3 additions & 3 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2023-11-27"
targets = ["aarch64-apple-darwin", "x86_64-unknown-linux-gnu"]
components = ["clippy", "rust-analysis", "rustfmt", "rust-src"]
channel = "stable"
# targets = ["aarch64-apple-darwin", "x86_64-unknown-linux-gnu"]
# components = ["clippy", "rust-analysis", "rustfmt", "rust-src"]

0 comments on commit d21e61f

Please sign in to comment.