mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Replace OUT_DIR in project.json with general env
OUT_DIR doesn't make sense here, as this is a cargo-specific concept
This commit is contained in:
parent
fe87aec7b6
commit
b48336bf94
2 changed files with 7 additions and 9 deletions
|
@ -259,11 +259,8 @@ impl ProjectWorkspace {
|
|||
let file_id = load(&file_path)?;
|
||||
|
||||
let mut env = Env::default();
|
||||
if let Some(out_dir) = &krate.out_dir {
|
||||
// NOTE: cargo and rustc seem to hide non-UTF-8 strings from env! and option_env!()
|
||||
if let Some(out_dir) = out_dir.to_str().map(|s| s.to_owned()) {
|
||||
env.set("OUT_DIR", out_dir);
|
||||
}
|
||||
for (k, v) in &krate.env {
|
||||
env.set(k, v.clone());
|
||||
}
|
||||
let proc_macro = krate
|
||||
.proc_macro_dylib_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue