mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Fix test_gen test
This commit is contained in:
parent
f6f8c2876f
commit
1cd0097c23
1 changed files with 10 additions and 2 deletions
|
@ -2,6 +2,7 @@ use libloading::Library;
|
||||||
use roc_build::link::{link, LinkType};
|
use roc_build::link::{link, LinkType};
|
||||||
use roc_builtins::bitcode;
|
use roc_builtins::bitcode;
|
||||||
use roc_load::{EntryPoint, ExecutionMode, LoadConfig, Threading};
|
use roc_load::{EntryPoint, ExecutionMode, LoadConfig, Threading};
|
||||||
|
use roc_mono::ir::SingleEntryPoint;
|
||||||
use roc_packaging::cache::RocCacheDir;
|
use roc_packaging::cache::RocCacheDir;
|
||||||
use roc_region::all::LineInfo;
|
use roc_region::all::LineInfo;
|
||||||
use tempfile::tempdir;
|
use tempfile::tempdir;
|
||||||
|
@ -105,8 +106,15 @@ pub fn helper(
|
||||||
|
|
||||||
debug_assert_eq!(exposed_to_host.values.len(), 1);
|
debug_assert_eq!(exposed_to_host.values.len(), 1);
|
||||||
let entry_point = match loaded.entry_point {
|
let entry_point = match loaded.entry_point {
|
||||||
EntryPoint::Executable { symbol, layout, .. } => {
|
EntryPoint::Executable {
|
||||||
roc_mono::ir::SingleEntryPoint { symbol, layout }
|
exposed_to_host,
|
||||||
|
platform_path: _,
|
||||||
|
} => {
|
||||||
|
// TODO support multiple of these!
|
||||||
|
debug_assert_eq!(exposed_to_host.len(), 1);
|
||||||
|
let (symbol, layout) = exposed_to_host[0];
|
||||||
|
|
||||||
|
SingleEntryPoint { symbol, layout }
|
||||||
}
|
}
|
||||||
EntryPoint::Test => {
|
EntryPoint::Test => {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue