mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Add build target directory to Cargo config
Anki's build scripts (ninja) set CARGO_TARGET_DIR for their own execution. But, when running cargo commands directly (like cargo check), those commands don't inherit that environment variable and use the default target/ directory instead, leading to duplicate builds. After this change, all cargo commands (check, build, test, etc.) will use the same cache, saving storage space.
This commit is contained in:
parent
8f2144534b
commit
6ed9b07c41
1 changed files with 3 additions and 0 deletions
|
|
@ -13,3 +13,6 @@ color = "always"
|
|||
|
||||
[target.'cfg(all(target_env = "msvc", target_os = "windows"))']
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
[build]
|
||||
target-dir = "out/rust"
|
||||
|
|
|
|||
Loading…
Reference in a new issue