Skip to content

Commit

Permalink
fix: bad compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Apr 7, 2024
1 parent 2d4c0bd commit 5a0a14d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[alias]
xclippy = [
"clippy",
"--workspace",
"--all-targets",
"--",
"-Dwarnings",
"-Wclippy::all",
"-Aclippy::upper_case_acronyms",
"-Aclippy::enum-variant-names",
"-Aclippy::result-large-err",
"-Aclippy::mutable-key-type",
"-Aclippy::map_identity", # We temporarily ignore this due to: https://github.com/rust-lang/rust-clippy/issues/11764
]
x = "run --package aptos-cargo-cli --bin aptos-cargo-cli --"

[build]
rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes"]

# TODO(grao): Figure out whether we should enable other cpu features, and whether we should use a different way to configure them rather than list every single one here.
[target.x86_64-unknown-linux-gnu]
rustflags = ["--cfg", "tokio_unstable", "-C", "link-arg=-fuse-ld=lld", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-C", "target-feature=+sse4.2"]

# 64 bit MSVC
[target.x86_64-pc-windows-msvc]
rustflags = [
"--cfg",
"tokio_unstable",
"-C",
"force-frame-pointers=yes",
"-C",
"force-unwind-tables=yes",
"-C",
"link-arg=/STACK:8000000" # Set stack to 8 MB
]

0 comments on commit 5a0a14d

Please sign in to comment.