about summary refs log tree commit diff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-12T11·51+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-12T11·51+0100
commit89e6781cc5885cbf6284a51c0403dded62ce8bc0 (patch)
tree8ce64784036d7db386aa929dc27c0445ff63c49f /src/libstore/globals.hh
parent2bcb384e95500ff197fd4888c659ccf0034cf214 (diff)
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.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index cbc6d4e984..9300edbe96 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -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;