mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
don't have compiler generate setjmp/longjmp when building an executable
This commit is contained in:
parent
a12e18ca70
commit
367d08814d
6 changed files with 71 additions and 66 deletions
|
@ -278,7 +278,7 @@ impl<'ctx> PointerToRefcount<'ctx> {
|
|||
// build then block
|
||||
{
|
||||
builder.position_at_end(then_block);
|
||||
if !env.leak {
|
||||
if !env.is_gen_test {
|
||||
let ptr = builder.build_pointer_cast(
|
||||
refcount_ptr.value,
|
||||
ctx.i8_type().ptr_type(AddressSpace::Generic),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue