mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix cargo check environment for the latest vscode
seems they refactored the way rust workspaces are handled and deprecated previous keywords and added some other features that break cargo check. This overrides all of that and manually configures cargo check to be harmonized with the hardware target environment.
This commit is contained in:
parent
1b29ea0421
commit
86459b02c5
1 changed files with 11 additions and 3 deletions
14
.vscode/settings.json
vendored
14
.vscode/settings.json
vendored
|
|
@ -1,7 +1,15 @@
|
|||
{
|
||||
"rust-analyzer.checkOnSave.allTargets": false,
|
||||
"rust-analyzer.cargo.target":"riscv32imac-unknown-xous-elf",
|
||||
"rust-analyzer.checkOnSave.extraArgs": ["--target-dir", "./target/check"],
|
||||
"rust-analyzer.check.overrideCommand":[
|
||||
"cargo",
|
||||
"check",
|
||||
"--target", "riscv32imac-unknown-xous-elf",
|
||||
"--target-dir", "target/analyzer",
|
||||
"--features", "precursor",
|
||||
"--features", "utralib/precursor",
|
||||
"--features", "utralib/precursor-pvt",
|
||||
"--message-format", "json"
|
||||
],
|
||||
"rust-analyzer.server.extraEnv": {
|
||||
"XOUS_SVD_FILE": "../precursors/soc.svd"
|
||||
},
|
||||
|
|
@ -13,7 +21,7 @@
|
|||
"**/.hg": true,
|
||||
"**/CVS": true,
|
||||
"**/.DS_Store": true,
|
||||
"**/Thumbs.db": true,
|
||||
"**/Thumbs.db": true
|
||||
},
|
||||
"cSpell.language": "en,fr"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue