diff --git a/lib/cli/src/cli.rs b/lib/cli/src/cli.rs index 91cab70bb6d..8a5972fd084 100644 --- a/lib/cli/src/cli.rs +++ b/lib/cli/src/cli.rs @@ -72,6 +72,18 @@ enum WasmerCLIOptions { /// $ file qjs.exe /// qjs.exe: ELF 64-bit LSB pie executable, x86-64 ... /// ``` + /// + /// ## Cross-compilation + /// + /// Accepted target triple values must follow the + /// ['target_lexicon'](https://crates.io/crates/target-lexicon) crate format. + /// + /// The recommended targets we try to support are: + /// + /// - "x86_64-linux-gnu" + /// - "aarch64-linux-gnu" + /// - "x86_64-apple-darwin" + /// - "arm64-apple-darwin" #[cfg(any(feature = "static-artifact-create", feature = "wasmer-artifact-create"))] #[clap(name = "create-exe", verbatim_doc_comment)] CreateExe(CreateExe), @@ -93,6 +105,18 @@ enum WasmerCLIOptions { /// $ file qjs.obj /// qjs.obj: ELF 64-bit LSB relocatable, x86-64 ... /// ``` + /// + /// ## Cross-compilation + /// + /// Accepted target triple values must follow the + /// ['target_lexicon'](https://crates.io/crates/target-lexicon) crate format. + /// + /// The recommended targets we try to support are: + /// + /// - "x86_64-linux-gnu" + /// - "aarch64-linux-gnu" + /// - "x86_64-apple-darwin" + /// - "arm64-apple-darwin" #[cfg(feature = "static-artifact-create")] #[structopt(name = "create-obj", verbatim_doc_comment)] CreateObj(CreateObj), diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index eb339797edd..b6f6ee33bf3 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -54,6 +54,16 @@ pub struct CreateExe { output: PathBuf, /// Compilation Target triple + /// + /// Accepted target triple values must follow the + /// ['target_lexicon'](https://crates.io/crates/target-lexicon) crate format. + /// + /// The recommended targets we try to support are: + /// + /// - "x86_64-linux-gnu" + /// - "aarch64-linux-gnu" + /// - "x86_64-apple-darwin" + /// - "arm64-apple-darwin" #[clap(long = "target")] target_triple: Option, diff --git a/lib/cli/src/commands/create_obj.rs b/lib/cli/src/commands/create_obj.rs index 3d9c61a635d..f9113e45fd7 100644 --- a/lib/cli/src/commands/create_obj.rs +++ b/lib/cli/src/commands/create_obj.rs @@ -37,6 +37,16 @@ pub struct CreateObj { header_output: Option, /// Compilation Target triple + /// + /// Accepted target triple values must follow the + /// ['target_lexicon'](https://crates.io/crates/target-lexicon) crate format. + /// + /// The recommended targets we try to support are: + /// + /// - "x86_64-linux-gnu" + /// - "aarch64-linux-gnu" + /// - "x86_64-apple-darwin" + /// - "arm64-apple-darwin" #[clap(long = "target")] target_triple: Option,