mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
WIP
This commit is contained in:
parent
80358d14a3
commit
459af15c8f
10 changed files with 129 additions and 41 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue