Skip to content

remove the ZIG_SYSTEM_LINKER_HACK feature #8728

Closed

Description

@andrewrk

ZIG_SYSTEM_LINKER_HACK is an environment variable that Zig inspects on macOS when building natively, and will execute the system linker, ld64, as a child process, rather than using LLD or self-hosted linker.

const system_linker_hack = std.os.getenv("ZIG_SYSTEM_LINKER_HACK") != null;

Don't get comfortable with it. This is a temporary workaround until our Mach-O linking code is sufficient to justify removing it.

Related: #8727

This issue blocks Zig 1.0.

Activity

  1. added
    enhancement
    on May 9, 2021
  2. added this to the 0.9.0 milestone on May 9, 2021
  3. modified the milestones: 0.9.0, 0.10.0 on May 19, 2021
  4. modified the milestones: 0.10.0, 0.9.0 on Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlinkingos-macos

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions