add preprocess host cli option

This commit is contained in:
Brendan Hansknecht 2023-11-05 12:22:39 -08:00
parent f0e3d65bc9
commit 8e86640bd7
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
3 changed files with 52 additions and 7 deletions

View file

@ -90,7 +90,7 @@ pub fn generate_stub_lib(
roc_cache_dir: RocCacheDir<'_>,
triple: &Triple,
function_kind: FunctionKind,
) -> std::io::Result<i32> {
) -> (PathBuf, PathBuf, Vec<String>) {
// Note: this should theoretically just be able to load the host, I think.
// Instead, I am loading an entire app because that was simpler and had example code.
// If this was expected to stay around for the the long term, we should change it.
@ -146,10 +146,10 @@ pub fn generate_stub_lib(
let stub_dll_symbols = exposed_symbols.stub_dll_symbols();
generate_dynamic_lib(triple, &stub_dll_symbols, &stub_lib);
(platform_path.into(), stub_lib, stub_dll_symbols)
} else {
unreachable!();
};
Ok(0)
}
}
pub fn generate_stub_lib_from_loaded(