mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
mark the builtin files as such so builtin function implementations are inserted
This commit is contained in:
parent
7c583b5e79
commit
493a96d85b
3 changed files with 21 additions and 11 deletions
|
@ -3128,6 +3128,18 @@ fn send_header<'a>(
|
|||
}
|
||||
}
|
||||
|
||||
// make sure when we run the bulitin modules in /compiler/builtins/roc that we
|
||||
// mark these modules as Builtin. Otherwise the builtin functions are not instantiated
|
||||
// and we just have a bunch of definitions with runtime errors in their bodies
|
||||
let extra = {
|
||||
match extra {
|
||||
HeaderFor::Interface if home.is_builtin() => HeaderFor::Builtin {
|
||||
generates_with: &[],
|
||||
},
|
||||
_ => extra,
|
||||
}
|
||||
};
|
||||
|
||||
(
|
||||
home,
|
||||
Msg::Header(ModuleHeader {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue