mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
add wasm test mode that influences test wrapper codegen
This commit is contained in:
parent
7b308d9efe
commit
cef4dc6b9f
7 changed files with 216 additions and 270 deletions
|
@ -1,5 +1,5 @@
|
|||
use roc_gen_llvm::llvm::build::module_from_builtins;
|
||||
pub use roc_gen_llvm::llvm::build::FunctionIterator;
|
||||
use roc_gen_llvm::llvm::build::{module_from_builtins, LlvmBackendMode};
|
||||
use roc_load::{LoadedModule, MonomorphizedModule};
|
||||
use roc_module::symbol::{Interns, ModuleId};
|
||||
use roc_mono::ir::OptLevel;
|
||||
|
@ -255,9 +255,7 @@ pub fn gen_from_mono_module_llvm(
|
|||
interns: loaded.interns,
|
||||
module,
|
||||
target_info,
|
||||
// in gen_tests, the compiler provides roc_panic
|
||||
// and sets up the setjump/longjump exception handling
|
||||
is_gen_test: false,
|
||||
mode: LlvmBackendMode::Binary,
|
||||
exposed_to_host: loaded.exposed_to_host.values.keys().copied().collect(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue