diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-09-22 21:02:37 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <hopsi@tuta.io> | 2025-09-22 21:02:37 +0200 |
| commit | 24144ff499852b0fab63cf0c93d4c8d8b2fad8ef (patch) | |
| tree | 2b286731008d9cf39c1b24f5c17ebe776b232445 /src/etc/rust_analyzer_eglot.el | |
| parent | ce4beebecb77821734079cff47d8af08f9f27f11 (diff) | |
| download | rust-24144ff499852b0fab63cf0c93d4c8d8b2fad8ef.tar.gz rust-24144ff499852b0fab63cf0c93d4c8d8b2fad8ef.zip | |
make rust-analyzer settings use dedicated directory
This avoids rust-analyzer having to wait for a build lock due to ./x running other commands (and the other way around).
Diffstat (limited to 'src/etc/rust_analyzer_eglot.el')
| -rw-r--r-- | src/etc/rust_analyzer_eglot.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/rust_analyzer_eglot.el b/src/etc/rust_analyzer_eglot.el index 3151cb1a6e7..e5abf67235a 100644 --- a/src/etc/rust_analyzer_eglot.el +++ b/src/etc/rust_analyzer_eglot.el @@ -6,6 +6,8 @@ :overrideCommand ["python3" "x.py" "check" + "--build-dir" + "build-rust-analyzer" "--json-output"]) :linkedProjects ["Cargo.toml" "compiler/rustc_codegen_cranelift/Cargo.toml" @@ -13,9 +15,9 @@ "library/Cargo.toml" "src/bootstrap/Cargo.toml" "src/tools/rust-analyzer/Cargo.toml"] - :rustfmt ( :overrideCommand ["build/host/rustfmt/bin/rustfmt" + :rustfmt ( :overrideCommand ["build-rust-analyzer/host/rustfmt/bin/rustfmt" "--edition=2024"]) - :procMacro ( :server "build/host/stage0/libexec/rust-analyzer-proc-macro-srv" + :procMacro ( :server "build-rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv" :enable t) :cargo ( :buildScripts ( :enable t :invocationLocation "root" @@ -23,6 +25,8 @@ :overrideCommand ["python3" "x.py" "check" + "--build-dir" + "build-rust-analyzer" "--json-output" "--compile-time-deps"])] :sysrootSrc "./library" |
