mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add a way to disable dll copying for users of proc_macro_srv library
This commit is contained in:
parent
cd6521e5de
commit
e277d5d64e
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ fn ensure_file_with_lock_free_access(path: &Path) -> io::Result<PathBuf> {
|
|||
use std::ffi::OsString;
|
||||
use std::hash::{BuildHasher, Hasher};
|
||||
|
||||
if std::env::var("RA_DONT_COPY_PROC_MACRO_DLL").is_ok() {
|
||||
return Ok(path.to_path_buf());
|
||||
}
|
||||
|
||||
let mut to = std::env::temp_dir();
|
||||
|
||||
let file_name = path.file_name().ok_or_else(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue