Add a primitive debug tracing facility.

When the CRETONNE_DBG environment variable is set, send debug messages
to a file named cretonne.dbg.*.

The trace facility is only enabled when debug assertions are on.
This commit is contained in:
Jakob Stoklund Olesen
2017-03-15 11:04:38 -07:00
parent d86854b286
commit 210530da9c
6 changed files with 111 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ pub mod settings;
pub mod sparse_map;
pub mod verifier;
#[macro_use]
pub mod dbg;
mod abi;
mod constant_hash;
mod context;