summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-13 23:42:21 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 05:48:44 -0400
commit3030e604f4abe3d2155eb77c124829f1d7213f35 (patch)
tree9955ae7945c22f1d5c990b64a5cfa9e57eb19f0c /main.cc
parente13d0172554929858f4e0143583f0d50f413ef83 (diff)
downloadfork-ledger-3030e604f4abe3d2155eb77c124829f1d7213f35.tar.gz
fork-ledger-3030e604f4abe3d2155eb77c124829f1d7213f35.tar.bz2
fork-ledger-3030e604f4abe3d2155eb77c124829f1d7213f35.zip
Don't cleanup commodities if Ledger was built in release mode.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 7769a7c9..930fc903 100644
--- a/main.cc
+++ b/main.cc
@@ -350,6 +350,9 @@ int parse_and_report(int argc, char * argv[], char * envp[])
int main(int argc, char * argv[], char * envp[])
{
try {
+#if DEBUG_LEVEL < BETA
+ ledger::do_cleanup = false;
+#endif
return parse_and_report(argc, argv, envp);
}
catch (const std::exception& err) {