Enable multiple functions exposed to the host

This commit is contained in:
Brendan Hansknecht 2024-10-06 18:30:09 -07:00
parent c61b7bf2a6
commit a9d1327dd1
No known key found for this signature in database
GPG key ID: A199D0660F95F948
7 changed files with 63 additions and 13 deletions

View file

@ -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!()