Skip to content

Conversation

@erikarvstedt
Copy link
Contributor

This allows building Zig with the correct dynamic linker in environments where the auto detection mechanism fails, like in Nix dev shells.

(--host-dynamic-linker has been in std.Build for a while now, but it only recently became available to cmake via a zig1.wasm update.)

@andrewrk
Copy link
Member

andrewrk commented Apr 18, 2024

Please see #19684. I think this functionality was a mistake. Distros will need to use the -Ddynamic-linker=foo option created by standardTargetOptions for zig projects.

@andrewrk andrewrk closed this Apr 18, 2024
@erikarvstedt erikarvstedt deleted the cmake-dynamic-linker branch April 18, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants