mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
don't try to run dbg with roc run
This commit is contained in:
parent
adddc1ff70
commit
5cb47939e2
2 changed files with 13 additions and 11 deletions
|
@ -158,7 +158,7 @@ impl LlvmBackendMode {
|
|||
}
|
||||
}
|
||||
|
||||
fn runs_expects(self) -> bool {
|
||||
pub(crate) fn runs_expects(self) -> bool {
|
||||
match self {
|
||||
LlvmBackendMode::Binary => false,
|
||||
LlvmBackendMode::BinaryDev => true,
|
||||
|
|
|
@ -1123,18 +1123,20 @@ pub(crate) fn run_low_level<'a, 'ctx, 'env>(
|
|||
// now what
|
||||
arguments!(condition);
|
||||
|
||||
let region = unsafe { std::mem::transmute::<_, roc_region::all::Region>(args[0]) };
|
||||
if env.mode.runs_expects() {
|
||||
let region = unsafe { std::mem::transmute::<_, roc_region::all::Region>(args[0]) };
|
||||
|
||||
crate::llvm::expect::clone_to_shared_memory(
|
||||
env,
|
||||
scope,
|
||||
layout_ids,
|
||||
args[0],
|
||||
region,
|
||||
&[args[0]],
|
||||
);
|
||||
crate::llvm::expect::clone_to_shared_memory(
|
||||
env,
|
||||
scope,
|
||||
layout_ids,
|
||||
args[0],
|
||||
region,
|
||||
&[args[0]],
|
||||
);
|
||||
|
||||
crate::llvm::expect::send_dbg(env);
|
||||
crate::llvm::expect::send_dbg(env);
|
||||
}
|
||||
|
||||
condition
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue