Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the ZIG_SYSTEM_LINKER_HACK feature #8728

Closed
andrewrk opened this issue May 9, 2021 · 0 comments · Fixed by #9266
Closed

remove the ZIG_SYSTEM_LINKER_HACK feature #8728

andrewrk opened this issue May 9, 2021 · 0 comments · Fixed by #9266
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. linking os-macos
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented May 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase. linking os-macos
Projects
None yet
1 participant