Skip to content

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.

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