X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fsetup.rs;h=cd360cbef9654b3108d2c1100f6613c5039f6278;hb=d23cb738d255ca1a9834fbe87ba8700b3d7da23f;hp=57426ce3d51094b259f863addc6a3509e098befb;hpb=548d49c7897e91ff6f703c00b3a2ff269b894fdc;p=rust.git diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs index 57426ce3d51..cd360cbef96 100644 --- a/src/bootstrap/setup.rs +++ b/src/bootstrap/setup.rs @@ -96,6 +96,10 @@ fn should_run(mut run: ShouldRun<'_>) -> ShouldRun<'_> { } fn make_run(run: RunConfig<'_>) { + if run.builder.config.dry_run() { + return; + } + // for Profile, `run.paths` will have 1 and only 1 element // this is because we only accept at most 1 path from user input. // If user calls `x.py setup` without arguments, the interactive TUI