From f67809ac1dca66e98c0999634212532974e43b97 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Wed, 14 Jun 2023 15:14:19 +0200 Subject: [PATCH] yet another dry run fix --- src/bootstrap/dist.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 6a2409a0fbfc6..a34a594f13798 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -170,6 +170,10 @@ fn make_win_dist( target: TargetSelection, builder: &Builder<'_>, ) { + if builder.config.dry_run() { + return; + } + //Ask gcc where it keeps its stuff let mut cmd = Command::new(builder.cc(target)); cmd.arg("-print-search-dirs");