cranelift_isle/
log.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Debug logging from the ISLE compiler itself.

/// Log a compiler-internal message for debugging purposes.
#[cfg(feature = "logging")]
#[macro_export]
macro_rules! log {
    ($($msg:tt)*) => {
        ::log::trace!($($msg)*)
    };
}

/// Log a compiler-internal message for debugging purposes.
#[cfg(not(feature = "logging"))]
#[macro_export]
macro_rules! log {
    ($($msg:tt)*) => {};
}