Skip to content

Building and testing rustc on *BSD fails on -C split-debuginfo #96643

Closed
@m-ou-se

Description

@m-ou-se

-Csplit-debuginfo is passed on at least NetBSD and FreeBSD when testing rustc, but that results in an error saying that the option is not yet stable.

bootstrap/builder.rs enables unstable options on Linux and Windows, but not on other platforms:

rust/src/bootstrap/builder.rs

Lines 1408 to 1415 in 879fb42

if target.contains("linux") || target.contains("windows") {
rustflags.arg("-Zunstable-options");
}
match self.config.rust_split_debuginfo {
SplitDebuginfo::Packed => rustflags.arg("-Csplit-debuginfo=packed"),
SplitDebuginfo::Unpacked => rustflags.arg("-Csplit-debuginfo=unpacked"),
SplitDebuginfo::Off => rustflags.arg("-Csplit-debuginfo=off"),
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-help-wantedCall for participation: Help is requested to fix this issue.O-netbsdOperating system: NetBSDT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions