diff options
-rw-r--r-- | src/nix/build.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc index f7c99f12dbbf..093415a0de12 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -52,6 +52,8 @@ struct CmdBuild : MixDryRun, InstallablesCommand { auto buildables = toBuildables(store, dryRun ? DryRun : Build, installables); + if (dryRun) return; + for (size_t i = 0; i < buildables.size(); ++i) { auto & b(buildables[i]); |