bazelbuild / bazelbuild/rules_rust

Add pdb file to output group when target_os is "uefi"

Open Beginner friendly
#3,599 1 comment 0 reactions 0 assignees View on GitHub
awaiting-response
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

When building uefi target with aarch64-unknown-uefi/x86_64-unknown-uefi, the compiler can also generate a PDB file. But because target_os is "uefi" in this case, the file is not added to the output group (currently only "windows" is supported https://github.com/bazelbuild/rules_rust/blob/main/rust/private/rustc.bzl#L1380).

Contributor guide

Open the contributing guide

Research direction

Start in rust/private/rustc.bzl around line 1380, where the output group currently handles target_os "windows". Check how the uefi targets produce PDB files and update the output-group handling so those files are included for target_os "uefi". Done means builds for aarch64-unknown-uefi and x86_64-unknown-uefi expose the generated PDB in the output group.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.