add wasm test mode that influences test wrapper codegen

This commit is contained in:
Folkert 2022-07-10 14:05:17 +02:00
parent 7b308d9efe
commit cef4dc6b9f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 216 additions and 270 deletions

View file

@ -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(),
};