|
3 | 3 | -W assume-incomplete-release=val -- make cfg(version) treat the current version as incomplete (default: no)
|
4 | 4 | -W asm-comments=val -- generate comments into the assembly (may change behavior) (default: no)
|
5 | 5 | -W assert-incr-state=val -- assert that the incremental cache is in given state: either `loaded` or `not-loaded`.
|
6 |
| - -W ast-json=val -- print the AST as JSON and halt (default: no) |
7 |
| - -W ast-json-noexpand=val -- print the pre-expansion AST as JSON and halt (default: no) |
8 | 6 | -W binary-dep-depinfo=val -- include artifacts (sysroot, crate dependencies) used during compilation in dep-info (default: no)
|
9 |
| - -W borrowck=val -- select which borrowck is used (`mir` or `migrate`) (default: `migrate`) |
10 | 7 | -W branch-protection=val -- set options for branch target identification and pointer authentication on AArch64
|
11 | 8 | -W cf-protection=val -- instrument control-flow architecture protection
|
12 | 9 | -W cgu-partitioning-strategy=val -- the codegen unit partitioning strategy to use
|
|
133 | 130 | for example: `-Z self-profile-events=default,query-keys`
|
134 | 131 | all options: none, all, default, generic-activity, query-provider, query-cache-hit
|
135 | 132 | query-blocked, incr-cache-load, incr-result-hashing, query-keys, function-args, args, llvm, artifact-sizes
|
| 133 | + -W self-profile-counter=val -- counter used by the self profiler (default: `wall-time`), one of: |
| 134 | + `wall-time` (monotonic clock, i.e. `std::time::Instant`) |
| 135 | + `instructions:u` (retired instructions, userspace-only) |
| 136 | + `instructions-minus-irqs:u` (subtracting hardware interrupt counts for extra accuracy) |
136 | 137 | -W share-generics=val -- make the current crate share its generic instantiations
|
137 | 138 | -W show-span=val -- show spans for compiler debugging (expr|pat|ty)
|
138 | 139 | -W span-debug=val -- forward proc_macro::Span's `Debug` impl to `Span`
|
139 | 140 | -W span-free-formats=val -- exclude spans when debug-printing compiler state (default: no)
|
140 | 141 | -W src-hash-algorithm=val -- hash algorithm of source files in debug info (`md5`, `sha1`, or `sha256`)
|
141 | 142 | -W stack-protector=val -- control stack smash protection strategy (`rustc --print stack-protector-strategies` for details)
|
| 143 | + -W strict-init-checks=val -- control if mem::uninitialized and mem::zeroed panic on more UB |
142 | 144 | -W strip=val -- tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)
|
143 | 145 | -W split-dwarf-kind=val -- split dwarf variant (only if -Csplit-debuginfo is enabled and on relevant platform)
|
144 | 146 | (default: `split`)
|
|
164 | 166 | -W time-passes=val -- measure time of each rustc pass (default: no)
|
165 | 167 | -W tls-model=val -- choose the TLS model to use (`rustc --print tls-models` for details)
|
166 | 168 | -W trace-macros=val -- for every macro invocation, print its name and arguments (default: no)
|
| 169 | + -W translate-remapped-path-to-local-path=val -- translate remapped paths into local paths when possible (default: yes) |
167 | 170 | -W trap-unreachable=val -- generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)
|
168 | 171 | -W treat-err-as-bug=val -- treat error number `val` that occurs as bug
|
169 | 172 | -W trim-diagnostic-paths=val -- in diagnostics, use heuristics to shorten paths referring to items
|
|
186 | 189 | -W validate-mir=val -- validate MIR after each transformation
|
187 | 190 | -W verbose=val -- in general, enable more debug printouts (default: no)
|
188 | 191 | -W verify-llvm-ir=val -- verify LLVM IR (default: no)
|
| 192 | + -W virtual-function-elimination=val -- enables dead virtual function elimination optimization. Requires `-Clto[=[fat,yes]]` |
189 | 193 | -W wasi-exec-model=val -- whether to build a wasi command or reactor
|
0 commit comments