Skip to content

Commit 43e54fb

Browse files
committed
Use custom target folder
1 parent 1e830da commit 43e54fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/extractor/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ fn main() -> anyhow::Result<()> {
4242

4343
let config = CargoConfig {
4444
sysroot: Some(RustLibSource::Discover),
45+
target_dir: ra_ap_paths::Utf8PathBuf::from_path_buf(cfg.scratch_dir)
46+
.map(|x| x.join("target"))
47+
.ok(),
4548
..Default::default()
4649
};
4750
let progress = |t| (println!("progress: {}", t));

0 commit comments

Comments
 (0)