From 89e6781cc5885cbf6284a51c0403dded62ce8bc0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 12 Nov 2013 12:51:59 +0100 Subject: 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. --- src/libstore/globals.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstore/globals.hh') diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index cbc6d4e9848e..9300edbe9615 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; -- cgit 1.4.1