diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-21 10:29:51 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-21 10:29:51 +0100 |
commit | 259100332f96250d6615d5839f6a77798c77aefb (patch) | |
tree | 914c7e85308a9145303527d937a0d1107bdde7d2 | |
parent | d04d8463faba97164f21fc64780574561a954555 (diff) |
Fix clang build
-rw-r--r-- | src/nix/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc index 45f63bb7e..724ce9d79 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -58,7 +58,8 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile if (outLink != "") if (auto store2 = store.dynamic_pointer_cast<LocalFSStore>()) - for (const auto & [i, buildable] : enumerate(buildables)) { + for (const auto & [_i, buildable] : enumerate(buildables)) { + auto i = _i; std::visit(overloaded { [&](BuildableOpaque bo) { std::string symlink = outLink; |