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

std.Build: revert --host-target, --host-cpu, --host-dynamic-linker #19684

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

andrewrk
Copy link
Member

@andrewrk andrewrk commented Apr 18, 2024

This is a partial revert of 105db13.

As we learned from Chimera Linux packaging, these options are not actually helpful since the distribution package manager may very well want to cross-compile the packages that it is building.

So, let's not overcomplicate things. There are already the options -Dtarget, -Dcpu, and -Ddynamic-linker created by standardTargetOptions.

These options are generally provided when the project generates machine code artifacts, however, there may be a project that does no such thing, in which case it makes sense for these options to be missing. The Zig Build System is a general-purpose build system, after all.

cc @ifreund

This is a partial revert of 105db13.

As we learned from Void Linux packaging, these options are not actually
helpful since the distribution package manager may very well want to
cross-compile the packages that it is building.

So, let's not overcomplicate things. There are already the standard
options: -Dtarget, -Dcpu, and -Ddynamic-linker.

These options are generally provided when the project generates machine
code artifacts, however, there may be a project that does no such thing,
in which case it makes sense for these options to be missing. The Zig
Build System is a general-purpose build system, after all.
Copy link
Member

@ifreund ifreund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

FWIW the most recent Zig package manager integration prototype I did was for Chimera Linux: chimera-linux/cports#1395

@andrewrk
Copy link
Member Author

Oops! I was intending to reference that indeed.

@andrewrk andrewrk merged commit 22a97cd into master Apr 18, 2024
10 checks passed
@andrewrk andrewrk deleted the revert-host-target branch April 18, 2024 10:02
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