Compiler Command Line Reference (v0.2.1)

Detailed reference for the Thrust compiler command line flags in v0.2.1.

Latest

Overview

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

Usage

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

General Commands

Entry-point commands for help, version, and diagnostic explanations.

Open category

Linkage Flags

Flags that select or configure the external linker toolchain.

Open category

Compiler Flags

Core compilation, backend, target, JIT, ABI, std, and debug flags.

Open category

Disable Compiler Flags

Flags that switch off selected backend, math, sanitizer, or optimization behaviors.

Open category

Warning Compiler Flags

Flags that suppress warning diagnostics.

Open category

Other Compiler Flags

Diagnostic, cleanup, export, and discovery flags.

Open category

Back to documentation hub