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

Consider using Zig as a C/C++ compiler to enable cross-compilation scenarios #128

Open
alexrp opened this issue Jun 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@alexrp
Copy link

alexrp commented Jun 3, 2022

I noticed that DNNE doesn't currently support cross-compilation for all the usual reasons that cross-compilation is a nightmare.

The Zig compiler supports cross-compilation out of the box across a wide range of platforms, and it contains an embedded Clang along with libc headers and/or sources for many platforms, allowing you to use zig cc/zig c++ as a C/C++ compiler. Cross-compilation basically Just Works. This is one of the reasons I developed my Zig SDK project.

It seems to me that using the Zig compiler as a C/C++ compiler for DNNE would be a ~perfect fit.

(FWIW, if this seems like a sensible thing to do, you could make use of the Zig toolset packages I publish on NuGet with every Zig release.)

@AaronRobinsonMSFT AaronRobinsonMSFT added the enhancement New feature or request label Jun 3, 2022
@AaronRobinsonMSFT
Copy link
Owner

@alexrp Thanks for pointing this out. I will definitely look into how it could be used as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants