mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Propagate multiple entrypoints to alias analysis
This commit is contained in:
parent
236cebacc1
commit
8b463686bc
10 changed files with 282 additions and 352 deletions
|
@ -188,18 +188,18 @@ fn gen_from_mono_module_llvm<'a>(
|
|||
// expects that would confuse the surgical linker
|
||||
add_default_roc_externs(&env);
|
||||
|
||||
let opt_entry_point = match loaded.entry_point {
|
||||
EntryPoint::Executable { symbol, layout, .. } => {
|
||||
Some(roc_mono::ir::EntryPoint { symbol, layout })
|
||||
}
|
||||
EntryPoint::Test => None,
|
||||
let exposed_to_host = match loaded.entry_point {
|
||||
EntryPoint::Executable {
|
||||
exposed_to_host, ..
|
||||
} => exposed_to_host,
|
||||
EntryPoint::Test => &[],
|
||||
};
|
||||
|
||||
roc_gen_llvm::llvm::build::build_procedures(
|
||||
&env,
|
||||
opt_level,
|
||||
loaded.procedures,
|
||||
opt_entry_point,
|
||||
exposed_to_host,
|
||||
Some(&app_ll_file),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue