Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/bin/wasm2obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The translation is dependent on the environment chosen.
The default is a dummy environment that produces placeholder values.

Usage:
wasm2obj [--target TARGET] [-Odg] [--cache | --cache-config=<cache_config_file>] [--enable-simd] <file> -o <output>
wasm2obj [--target TARGET] [-Odg] [--disable-cache | --cache-config=<cache_config_file>] [--enable-simd] <file> -o <output>
wasm2obj --create-cache-config [--cache-config=<cache_config_file>]
wasm2obj --help | --version

Expand All @@ -72,9 +72,9 @@ Options:
-h, --help print this help message
--target <TARGET> build for the target triple; default is the host machine
-g generate debug information
-c, --cache enable caching system, use default configuration
--disable-cache disables cache system
--cache-config=<cache_config_file>
enable caching system, use specified cache configuration;
use specified cache configuration;
can be used with --create-cache-config to specify custom file
--create-cache-config
creates default configuration and writes it to the disk,
Expand All @@ -93,7 +93,7 @@ struct Args {
arg_target: Option<String>,
flag_g: bool,
flag_debug: bool,
flag_cache: bool, // TODO change to disable cache after implementing cache eviction
flag_disable_cache: bool,
flag_cache_config: Option<String>,
flag_create_cache_config: bool,
flag_enable_simd: bool,
Expand Down Expand Up @@ -143,7 +143,7 @@ fn main() {
}

let errors = cache_init(
args.flag_cache || args.flag_cache_config.is_some(),
!args.flag_disable_cache,
args.flag_cache_config.as_ref(),
log_config,
);
Expand Down
12 changes: 6 additions & 6 deletions src/bin/wasmtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ including calling the start function if one is present. Additional functions
given with --invoke are then called.

Usage:
wasmtime [-odg] [--enable-simd] [--wasi-c] [--cache | --cache-config=<cache_config_file>] [--preload=<wasm>...] [--env=<env>...] [--dir=<dir>...] [--mapdir=<mapping>...] <file> [<arg>...]
wasmtime [-odg] [--enable-simd] [--wasi-c] [--cache | --cache-config=<cache_config_file>] [--env=<env>...] [--dir=<dir>...] [--mapdir=<mapping>...] --invoke=<fn> <file> [<arg>...]
wasmtime [-odg] [--enable-simd] [--wasi-c] [--disable-cache | --cache-config=<cache_config_file>] [--preload=<wasm>...] [--env=<env>...] [--dir=<dir>...] [--mapdir=<mapping>...] <file> [<arg>...]
wasmtime [-odg] [--enable-simd] [--wasi-c] [--disable-cache | --cache-config=<cache_config_file>] [--env=<env>...] [--dir=<dir>...] [--mapdir=<mapping>...] --invoke=<fn> <file> [<arg>...]
wasmtime --create-cache-config [--cache-config=<cache_config_file>]
wasmtime --help | --version

Options:
--invoke=<fn> name of function to run
-o, --optimize runs optimization passes on the translated functions
-c, --cache enable caching system, use default configuration
--disable-cache disables cache system
--cache-config=<cache_config_file>
enable caching system, use specified cache configuration;
use specified cache configuration;
can be used with --create-cache-config to specify custom file
--create-cache-config
creates default configuration and writes it to the disk,
Expand All @@ -96,7 +96,7 @@ struct Args {
arg_file: String,
arg_arg: Vec<String>,
flag_optimize: bool,
flag_cache: bool, // TODO change to disable cache after implementing cache eviction
flag_disable_cache: bool,
flag_cache_config: Option<String>,
flag_create_cache_config: bool,
flag_debug: bool,
Expand Down Expand Up @@ -242,7 +242,7 @@ fn rmain() -> Result<(), Error> {
}

let errors = cache_init(
args.flag_cache || args.flag_cache_config.is_some(),
!args.flag_disable_cache,
args.flag_cache_config.as_ref(),
log_config,
);
Expand Down
10 changes: 5 additions & 5 deletions src/bin/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ const USAGE: &str = "
Wast test runner.

Usage:
wast [-do] [--enable-simd] [--cache | --cache-config=<cache_config_file>] <file>...
wast [-do] [--enable-simd] [--disable-cache | --cache-config=<cache_config_file>] <file>...
wast --create-cache-config [--cache-config=<cache_config_file>]
wast --help | --version

Options:
-h, --help print this help message
--version print the Cranelift version
-o, --optimize runs optimization passes on the translated functions
-c, --cache enable caching system, use default configuration
--disable-cache disables cache system
--cache-config=<cache_config_file>
enable caching system, use specified cache configuration;
use specified cache configuration;
can be used with --create-cache-config to specify custom file
--create-cache-config
creates default configuration and writes it to the disk,
Expand All @@ -67,7 +67,7 @@ struct Args {
flag_debug: bool,
flag_function: Option<String>,
flag_optimize: bool,
flag_cache: bool, // TODO change to disable cache after implementing cache eviction
flag_disable_cache: bool,
flag_cache_config: Option<String>,
flag_create_cache_config: bool,
flag_enable_simd: bool,
Expand Down Expand Up @@ -109,7 +109,7 @@ fn main() {
}

let errors = cache_init(
args.flag_cache || args.flag_cache_config.is_some(),
!args.flag_disable_cache,
args.flag_cache_config.as_ref(),
log_config,
);
Expand Down