diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-02-04 00:31:33 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-02-04 00:33:21 +0100 |
commit | bd383d1b6f91c4fe7ac21c52771e92027f649fa0 (patch) | |
tree | 6845b5d2f709df2cbf06bca8de67cdab075902d2 /src/nix-build/nix-build.cc | |
parent | 4c755c3b3fc427afe192d223b37c288c88cc57d5 (diff) |
Make most calls to determinePos() lazy
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-x | src/nix-build/nix-build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index a7dce23f1..ae4746955 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -318,7 +318,7 @@ static void main_nix_build(int argc, char * * argv) for (auto & i : attrPaths) { Value & v(*findAlongAttrPath(*state, i, *autoArgs, vRoot).first); - state->forceValue(v, v.determinePos(noPos)); + state->forceValue(v, [&]() { return v.determinePos(noPos); }); getDerivations(*state, v, "", *autoArgs, drvs, false); } } |