aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-19 12:01:06 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-22 09:59:51 +0200
commit668abd3e5777d29910068b955fb36bf69e7b38b0 (patch)
tree59b670b09719fb0f7721468d12f0a1ad3f8d1b52 /src/nix-build
parent8d9f7048cd3b09fb58f6bad0328f644b0ddaaa16 (diff)
copyPaths: Pass store by reference
Diffstat (limited to 'src/nix-build')
-rwxr-xr-xsrc/nix-build/nix-build.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 3e4fd8dbd..3b791e619 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -397,7 +397,7 @@ static void main_nix_build(int argc, char * * argv)
pathsToCopy.insert(src);
}
- copyClosure(evalStore, store, pathsToCopy);
+ copyClosure(*evalStore, *store, pathsToCopy);
buildPaths(pathsToBuild);
@@ -564,7 +564,7 @@ static void main_nix_build(int argc, char * * argv)
drvMap[drvPath] = {drvMap.size(), {outputName}};
}
- copyClosure(evalStore, store, drvsToCopy);
+ copyClosure(*evalStore, *store, drvsToCopy);
buildPaths(pathsToBuild);