From 668abd3e5777d29910068b955fb36bf69e7b38b0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Jul 2021 12:01:06 +0200 Subject: copyPaths: Pass store by reference --- src/nix-build/nix-build.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nix-build') 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); -- cgit v1.2.3