General Commands
Entry-point commands for help, version, and diagnostic explanations.
Detailed reference for the Thrust compiler command line flags in v0.2.1.
Search the standard library, language reference, and compiler command line reference for this version.
This section explains the command line flags available in Thrust Compiler v0.2.1 and what each group of options is for in normal workflows.
Use it as a practical reference when you need to choose a target, tune optimization, inspect compiler output, configure linking, or control diagnostics.
Each category groups together the public flags shown by the compiler help and includes accepted values, examples, and short usage notes.
Reference source: thrustc/thrustc_cli/src/help.rs
thrustc main.thrust -opt O2 -emit llvm-ir
thrustc main.thrust -target-triple x86_64-pc-linux-gnu -abi webassembly
thrustc main.thrust --help emit
Entry-point commands for help, version, and diagnostic explanations.
Flags that select or configure the external linker toolchain.
Core compilation, backend, target, JIT, ABI, std, and debug flags.
Flags that switch off selected backend, math, sanitizer, or optimization behaviors.
Flags that suppress warning diagnostics.
Diagnostic, cleanup, export, and discovery flags.