summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ocaml_backend.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ocaml_backend.ml b/src/ocaml_backend.ml
index a2c40b03..96dfd9d3 100644
--- a/src/ocaml_backend.ml
+++ b/src/ocaml_backend.ml
@@ -637,6 +637,7 @@ let ocaml_main spec sail_dir =
end;
(("open " ^ String.capitalize spec ^ ";;\n\n") :: !lines
@ [ " zinitializze_registers ();";
+ if !opt_trace_ocaml then " Sail_lib.opt_trace := true;" else " ();";
" Printexc.record_backtrace true;";
" zmain ()\n";])
|> String.concat "\n"