Skip to content

use target and optimize #2

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

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

sethvincent
Copy link
Contributor

This is an extremely optional pr but wanted to share just in case it's useful.

I was getting these errors running zig build in a zig project and it didn't make any sense:

error: invalid option: -Dcpu
error: invalid option: -Dtarget
error: invalid option: -Doptimize

It took me a while to find this zig issue (ziglang/zig#18575) and realize it was happening because of a dependency.

Ideally we would just skip using target and optimize in libs if not really used, though until the above error message issue is fixed it seems nice to help avoid footguns by still accepting those options in libs.

@clickingbuttons
Copy link
Owner

Thanks!

@clickingbuttons clickingbuttons merged commit 224b832 into clickingbuttons:master Sep 19, 2024
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