mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Enable multiple functions exposed to the host
This commit is contained in:
parent
c61b7bf2a6
commit
a9d1327dd1
7 changed files with 63 additions and 13 deletions
|
@ -230,9 +230,13 @@ fn mono_module_to_dylib_llvm<'a>(
|
|||
} => {
|
||||
// TODO support multiple of these!
|
||||
debug_assert_eq!(exposed_to_host.len(), 1);
|
||||
let (symbol, layout) = exposed_to_host[0];
|
||||
let (name, symbol, layout) = exposed_to_host[0];
|
||||
|
||||
roc_mono::ir::SingleEntryPoint { symbol, layout }
|
||||
roc_mono::ir::SingleEntryPoint {
|
||||
name,
|
||||
symbol,
|
||||
layout,
|
||||
}
|
||||
}
|
||||
EntryPoint::Test => {
|
||||
unreachable!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue