mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
create-exe: list supported cross-compilation target triples in help text
Closes #3087
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user