Skip to content

docs(cli): correct hew build -g Windows debug-info help text (#2235)#2645

Open
gertybotbot wants to merge 1 commit into
hew-lang:mainfrom
gertybotbot:fix/2235c-build-g-help-text
Open

docs(cli): correct hew build -g Windows debug-info help text (#2235)#2645
gertybotbot wants to merge 1 commit into
hew-lang:mainfrom
gertybotbot:fix/2235c-build-g-help-text

Conversation

@gertybotbot

Copy link
Copy Markdown
Contributor

Part (c) of #2235 (CodeView/PDB follow-ups from #2117).

Problem

The -g / --debug help text on hew build still describes Windows debug
output as PE/COFF with embedded DWARF and cites #2117 as an open follow-up.
That is stale: #2117 (merged as #2230) added CodeView + a sidecar PDB for
windows-msvc. The codegen path now sets the LLVM "CodeView" module flag on
windows-msvc -g builds (hew-codegen-rs/src/llvm.rs:40559, gated
Windows-MSVC-only), so MSVC-toolchain debuggers read those builds natively;
only windows-gnu still emits DWARF-in-PE.

Change

Docs-only edit to the BuildArgs::debug doc-comment in hew-cli/src/args.rs:

No behavioural change; this only corrects user-facing --help text.

Scope note: parts (a) (CodeView e2e CI test) and (b) (needs_pdb_debug
predicate alignment) of #2235 are separate, non-docs work and are not
touched here.

Verification (Linux)

  • cargo build -p hew-cli — clean
  • cargo fmt -p hew-cli -- --check — clean
  • cargo clippy -p hew-cli -- -D warnings — clean
  • hew build --help renders the corrected text

…ang#2235)

The `-g`/`--debug` help still described Windows output as PE/COFF with
embedded DWARF and cited hew-lang#2117 as an open follow-up, but hew-lang#2117 (merged as
hew-lang#2230) added CodeView + a sidecar PDB for windows-msvc: the codegen path
now sets the LLVM "CodeView" module flag on windows-msvc -g builds
(hew-codegen-rs/src/llvm.rs) while windows-gnu keeps DWARF-in-PE.

Update the help to state that windows-msvc emits COFF+CodeView+.pdb read
natively by MSVC-toolchain debuggers, that windows-gnu still emits
DWARF-in-PE, and to point the remaining-work reference at the open hew-lang#2235
follow-up rather than the closed hew-lang#2117.

Docs-only; no behavioural change. hew-cli builds, cargo fmt --check and
cargo clippy -p hew-cli -- -D warnings are clean; `hew build --help`
renders the corrected text (hew-lang#2235 part c).
@slepp slepp force-pushed the fix/2235c-build-g-help-text branch from 2fb29d7 to 15aa9ec Compare July 14, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows -g debuggability: emit CodeView/PDB for Windows-native debuggers

1 participant