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:
@@ -137,6 +137,10 @@ fn worker_thread(thread_num: usize,
|
||||
}
|
||||
});
|
||||
|
||||
if let &Err(ref msg) = &result {
|
||||
dbg!("FAIL: {}", msg);
|
||||
}
|
||||
|
||||
replies.send(Reply::Done {
|
||||
jobid: jobid,
|
||||
result: result,
|
||||
|
||||
Reference in New Issue
Block a user