This commit is contained in:
Folkert 2021-08-23 21:14:09 +02:00
parent 80358d14a3
commit 459af15c8f
10 changed files with 129 additions and 41 deletions

View file

@ -26,6 +26,10 @@ pub fn link(
link_type: LinkType,
) -> io::Result<(Child, PathBuf)> {
match target {
Triple {
architecture: Architecture::Wasm32,
..
} => link_wasm32(target, output_path, input_paths, link_type),
Triple {
operating_system: OperatingSystem::Linux,
..
@ -496,6 +500,16 @@ fn link_macos(
))
}
fn link_wasm32(
target: &Triple,
output_path: PathBuf,
input_paths: &[&str],
link_type: LinkType,
) -> io::Result<(Child, PathBuf)> {
dbg!(target, output_path, input_paths, link_type);
panic!()
}
#[cfg(feature = "llvm")]
pub fn module_to_dylib(
module: &inkwell::module::Module,