chore: add -Dwarnings to default Rust flags; add rustflags for wasm32 target
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2134d0a73748bd8889a97c336823ca826a6a6964
This commit is contained in:
parent
b6da2ca616
commit
a1906ece00
1 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,17 @@ rustflags = [
|
||||||
"-Clto",
|
"-Clto",
|
||||||
"-Zvirtual-function-elimination",
|
"-Zvirtual-function-elimination",
|
||||||
"-Zlocation-detail=none",
|
"-Zlocation-detail=none",
|
||||||
|
|
||||||
|
# Configuration for these lints should be placed in `.clippy.toml` at the crate root.
|
||||||
|
"-Dwarnings",
|
||||||
|
]
|
||||||
|
|
||||||
|
[target.wasm32-unknown-unknown]
|
||||||
|
rustflags = [
|
||||||
|
"-C",
|
||||||
|
"link-args=-z stack-size=268435456",
|
||||||
|
"-C",
|
||||||
|
"target-feature=+atomics,+bulk-memory,+mutable-globals",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue