mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't send delayed errors if we're told to ignore problems
This commit is contained in:
parent
53e7a41f27
commit
ee516eaa2f
1 changed files with 6 additions and 1 deletions
|
@ -267,7 +267,12 @@ fn create_llvm_module<'a>(
|
|||
// Uncomment this to see the module's optimized LLVM instruction output:
|
||||
// env.module.print_to_stderr();
|
||||
|
||||
(main_fn_name, delayed_errors.join("\n"), env.module)
|
||||
let delayed_errors = if config.ignore_problems {
|
||||
String::new()
|
||||
} else {
|
||||
delayed_errors.join("\n")
|
||||
};
|
||||
(main_fn_name, delayed_errors, env.module)
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue