1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Make function calls show up in stack traces again

Note that adding --show-trace prevents functions calls from being
tail-recursive, so an expression that evaluates without --show-trace
may fail with a stack overflow if --show-trace is given.
This commit is contained in:
Eelco Dolstra 2013-11-12 12:51:59 +01:00
parent 2bcb384e95
commit 89e6781cc5
4 changed files with 34 additions and 25 deletions

View file

@ -186,6 +186,9 @@ struct Settings {
/* Whether to lock the Nix client and worker to the same CPU. */
bool lockCPU;
/* Whether to show a stack trace if Nix evaluation fails. */
bool showTrace;
private:
SettingsMap settings, overrides;