Add CompilerConifg opt to disable IR verification in debug mode

This commit is contained in:
Mark McCaskey
2020-03-24 14:47:00 -07:00
parent 56aec04d1d
commit 403e14bc1e
4 changed files with 26 additions and 13 deletions

View File

@ -136,6 +136,12 @@ pub struct CompilerConfig {
/// Enabling this makes execution deterministic but increases runtime overhead.
pub nan_canonicalization: bool,
/// Turns off verification that is done by default when `debug_assertions` are enabled
/// (for example in 'debug' builds). Enabling this flag will make compilation faster at the
/// cost of not detecting bugs in the compiler. The verification steps that this flag
/// disables are disabled by default in 'release' builds.
pub disable_debug_mode_verification: bool,
pub features: Features,
// Target info. Presently only supported by LLVM.