Skip to content

Conversation

@Kbz-8
Copy link

@Kbz-8 Kbz-8 commented Dec 8, 2025

I added a Zig build script because I wanted to use cpuinfo in a Zig project. Here's a small PR adding it if you want.

It adds possibility to use this library in Zig codes but also permit to compile the library with the Zig toolchain even if it is not used in Zig.

The build script is mainly based on the BAZEL one.

I do not expect it to be merged as it is a pretty niche adding but I'm opening this PR just in case.

@meta-cla meta-cla bot added the cla signed label Dec 8, 2025
@fbarchard
Copy link
Collaborator

Can you clarify if this is for the zig compiler or a zig build tool?
If it can be treated as a compiler, the main build files (bazel) may be able to use the existing build files?
Also for the compiler aspect, it may be interesting to explore via godbolt, as a way to test code builds correctly with zig

@Kbz-8
Copy link
Author

Kbz-8 commented Dec 27, 2025

This is for the Zig build system and thus will use the Zig compiler. This is mainly for Zig projects wanting to use cpuinfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants