Merge pull request #2186 from dtzWill/fix/cxx14-static-assert

eval.cc: add message to static_assert, message can be omitted w/c++17
This commit is contained in:
Eelco Dolstra 2018-05-28 14:54:20 +02:00 committed by GitHub
commit d820717bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -307,7 +307,7 @@ EvalState::EvalState(const Strings & _searchPath, ref<Store> store)
assert(gcInitialised); assert(gcInitialised);
static_assert(sizeof(Env) == 16); static_assert(sizeof(Env) == 16, "environment must be 16 bytes");
/* Initialise the Nix expression search path. */ /* Initialise the Nix expression search path. */
if (!settings.pureEval) { if (!settings.pureEval) {