add cli test configuration

This commit is contained in:
Folkert 2022-07-13 19:16:36 +02:00
parent 8c77899d8f
commit b229c70eec
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 212 additions and 180 deletions

View file

@ -197,6 +197,7 @@ pub fn expect_mono_module_to_dylib<'a>(
target: Triple,
loaded: MonomorphizedModule<'a>,
opt_level: OptLevel,
mode: LlvmBackendMode,
) -> Result<(libloading::Library, bumpalo::collections::Vec<'a, &'a str>), libloading::Error> {
let target_info = TargetInfo::from(&target);
@ -230,7 +231,7 @@ pub fn expect_mono_module_to_dylib<'a>(
interns,
module,
target_info,
mode: LlvmBackendMode::GenTest, // so roc_panic is generated
mode,
// important! we don't want any procedures to get the C calling convention
exposed_to_host: MutSet::default(),
};