Skip to content

std.Build conflates libc configuration for host and cross targets #22559

Open
@tranzystorekk

Description

@tranzystorekk

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

As observed in ghostty-org/ghostty#3218 zig projects that build e.g. a helper executable meant to be run on host target, attempt to link it to cross target libc, which leads to build failures.

Expected Behavior

Build artifacts mentioned above should build correctly for cross target configurations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorzig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions