Skip to content

Commit 57bfbfa

Browse files
committed
don't build rust-analyzer-proc-macro-srv on def config
Signed-off-by: onur-ozkan <[email protected]>
1 parent 9d49eb7 commit 57bfbfa

File tree

1 file changed

+8
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+8
-5
lines changed

src/bootstrap/src/core/build_steps/tool.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,14 @@ impl Step for RustAnalyzerProcMacroSrv {
671671
// Allow building `rust-analyzer-proc-macro-srv` both as part of the `rust-analyzer` and as a stand-alone tool.
672672
run.path("src/tools/rust-analyzer")
673673
.path("src/tools/rust-analyzer/crates/proc-macro-srv-cli")
674-
.default_condition(builder.config.tools.as_ref().map_or(true, |tools| {
675-
tools
676-
.iter()
677-
.any(|tool| tool == "rust-analyzer" || tool == "rust-analyzer-proc-macro-srv")
678-
}))
674+
.default_condition(
675+
builder.config.extended
676+
&& builder.config.tools.as_ref().map_or(true, |tools| {
677+
tools.iter().any(|tool| {
678+
tool == "rust-analyzer" || tool == "rust-analyzer-proc-macro-srv"
679+
})
680+
}),
681+
)
679682
}
680683

681684
fn make_run(run: RunConfig<'_>) {

0 commit comments

Comments
 (0)