diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-05-12 19:13:33 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-05-12 19:13:33 +0000 |
commit | b18720ee175d6c019be964955efc1633be1c434d (patch) | |
tree | da1daaed8a0c3c45829ba9285f328d31e09476b8 /src/nix/main.cc | |
parent | 6b61d7722d0b24bc4b5e020a71ada442c19f495d (diff) | |
parent | d354fc30b9768ea3dc737a88b57bf5e26d98135b (diff) |
Merge remote-tracking branch 'upstream/master' into indexed-store-path-outputs
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 6198681e7..dadb54306 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -261,6 +261,8 @@ void mainWrapped(int argc, char * * argv) } #endif + Finally f([] { logger->stop(); }); + programPath = argv[0]; auto programName = std::string(baseNameOf(programPath)); @@ -279,8 +281,6 @@ void mainWrapped(int argc, char * * argv) verbosity = lvlInfo; } - Finally f([] { logger->stop(); }); - NixArgs args; if (argc == 2 && std::string(argv[1]) == "__dump-args") { @@ -302,7 +302,7 @@ void mainWrapped(int argc, char * * argv) b["arity"] = primOp->arity; b["args"] = primOp->args; b["doc"] = trim(stripIndentation(primOp->doc)); - res[(std::string) builtin.name] = std::move(b); + res[state.symbols[builtin.name]] = std::move(b); } std::cout << res.dump() << "\n"; return; |