1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

Narrower scope for nativeSystem

I don't think we need a CPP defininition and a header entry, and this
way allows constant expression elimination.
This commit is contained in:
John Ericson 2023-11-05 12:17:33 -05:00
parent 8e222fbb12
commit 2678b51b31
3 changed files with 2 additions and 8 deletions

View file

@ -7,8 +7,6 @@
namespace nix {
const std::string nativeSystem = SYSTEM;
void BaseError::addTrace(std::shared_ptr<AbstractPos> && e, hintformat hint, bool frame)
{
err.traces.push_front(Trace { .pos = std::move(e), .hint = hint, .frame = frame });