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

@ -2,6 +2,7 @@ use bumpalo::Bump;
use const_format::concatcp;
use inkwell::context::Context;
use libloading::Library;
use roc_gen_llvm::llvm::build::LlvmBackendMode;
use roc_types::subs::Subs;
use rustyline::highlight::{Highlighter, PromptInfo};
use rustyline::validate::{self, ValidationContext, ValidationResult, Validator};
@ -228,7 +229,7 @@ pub fn expect_mono_module_to_dylib<'a>(
interns,
module,
target_info,
is_gen_test: true, // so roc_panic is generated
mode: LlvmBackendMode::GenTest, // so roc_panic is generated
// important! we don't want any procedures to get the C calling convention
exposed_to_host: MutSet::default(),
};
@ -306,7 +307,7 @@ pub fn mono_module_to_dylib<'a>(
interns,
module,
target_info,
is_gen_test: true, // so roc_panic is generated
mode: LlvmBackendMode::GenTest, // so roc_panic is generated
// important! we don't want any procedures to get the C calling convention
exposed_to_host: MutSet::default(),
};