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

Support a custom libc configuration file #174

Open
aherrmann opened this issue Dec 30, 2023 · 0 comments
Open

Support a custom libc configuration file #174

aherrmann opened this issue Dec 30, 2023 · 0 comments

Comments

@aherrmann
Copy link
Owner

See #161 (comment).

Zig links against its own libc. However, this is configurable. You can either select one of the builtin libc's by adjusting the ABI part of the target triple in a custom target toolchain. Or, in principle Zig can also accept a custom libc configuration, which could also be exposed through a target toolchain attribute.

  --libc [file]             Provide a file which specifies libc paths

Add an optional libc attribute to the target toolchain rule. When set the --libc flag will be passed to the Zig compiler accordingly.

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

No branches or pull requests

1 participant