Skip to content

RefC build error returns 0 code #3767

@joelberkeley

Description

@joelberkeley

The following file

module Main

import System.FFI

%foreign "C:foo,libfoo,foo.h"
foo : Int -> Int

main : IO ()
main = printLn $ foo 1

with no headers present, logs an error as expected:

$ idris2 --cg refc --build tinker.ipkg 
Now compiling the executable: tinker
build/exec/tinker.c:4:10: fatal error: foo.h: No such file or directory
    4 | #include <foo.h>
      |          ^~~~~~~
compilation terminated.

but mistakenly returns code 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions