mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
only generate roc panic if running tests
This commit is contained in:
parent
cec6d7424e
commit
1856695b0b
2 changed files with 25 additions and 14 deletions
|
@ -45,6 +45,13 @@ impl AssemblyBackendMode {
|
|||
AssemblyBackendMode::Test => true,
|
||||
}
|
||||
}
|
||||
|
||||
fn generate_roc_panic(self) -> bool {
|
||||
match self {
|
||||
AssemblyBackendMode::Binary => false,
|
||||
AssemblyBackendMode::Test => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Env<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue