create conversion code from Types to the roc version of Types

This commit is contained in:
Brendan Hansknecht 2022-12-09 23:09:30 -08:00
parent 8d8150e748
commit abdc84d927
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
9 changed files with 433 additions and 7 deletions

View file

@ -65,6 +65,7 @@ pub const FLAG_WASM_STACK_SIZE_KB: &str = "wasm-stack-size-kb";
pub const ROC_FILE: &str = "ROC_FILE";
pub const ROC_DIR: &str = "ROC_DIR";
pub const GLUE_DIR: &str = "GLUE_DIR";
pub const GLUE_SPEC: &str = "GLUE_SPEC";
pub const DIRECTORY_OR_FILES: &str = "DIRECTORY_OR_FILES";
pub const ARGS_FOR_APP: &str = "ARGS_FOR_APP";
@ -290,6 +291,12 @@ pub fn build_app<'a>() -> Command<'a> {
.allow_invalid_utf8(true)
.required(true)
)
.arg(
Arg::new(GLUE_SPEC)
.help("The specification for how to convert roc types into another programming language")
.allow_invalid_utf8(true)
.required(true)
)
)
.subcommand(Command::new(CMD_GEN_STUB_LIB)
.about("Generate a stubbed shared library that can be used for linking a platform binary.\nThe stubbed library has prototypes, but no function bodies.\n\nNote: This command will be removed in favor of just using `roc build` once all platforms support the surgical linker")