Skip to content

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

@alexrp

Description

@alexrp

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions