mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-04 00:54:36 +00:00
Add base of loading cloning exec for surgery
This commit is contained in:
parent
b84d958a9a
commit
b0c3aa3d1c
2 changed files with 341 additions and 34 deletions
|
@ -1,4 +1,4 @@
|
|||
use roc_linker::{build_app, preprocess, CMD_PREPROCESS, CMD_SURGERY};
|
||||
use roc_linker::{build_app, preprocess, surgery, CMD_PREPROCESS, CMD_SURGERY};
|
||||
use std::io;
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
|
@ -10,7 +10,10 @@ fn main() -> io::Result<()> {
|
|||
let sub_matches = matches.subcommand_matches(CMD_PREPROCESS).unwrap();
|
||||
preprocess(sub_matches)
|
||||
}
|
||||
Some(CMD_SURGERY) => Ok(0),
|
||||
Some(CMD_SURGERY) => {
|
||||
let sub_matches = matches.subcommand_matches(CMD_SURGERY).unwrap();
|
||||
surgery(sub_matches)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}?;
|
||||
std::process::exit(exit_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue