about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--012elf.cc3
-rw-r--r--028translate.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/012elf.cc b/012elf.cc
index 9bd6cbf1..7e0a4c7b 100644
--- a/012elf.cc
+++ b/012elf.cc
@@ -5,7 +5,8 @@
 :(before "End Main")
 assert(argc > 1);
 if (is_equal(argv[1], "run")) {
-  START_TRACING_UNTIL_END_OF_SCOPE;
+  // Outside of tests, traces must be explicitly requested.
+  if (Trace_file.is_open()) Trace_stream = new trace_stream;
   trace(2, "run") << "=== Starting to run" << end();
   assert(argc > 2);
   reset();
diff --git a/028translate.cc b/028translate.cc
index d3a6a8ac..9737834e 100644
--- a/028translate.cc
+++ b/028translate.cc
@@ -18,7 +18,8 @@
 
 :(before "End Main")
 if (is_equal(argv[1], "translate")) {
-  START_TRACING_UNTIL_END_OF_SCOPE;
+  // Outside of tests, traces must be explicitly requested.
+  if (Trace_file.is_open()) Trace_stream = new trace_stream;
   reset();
   // Begin subx translate
   program p;