AaronRobinsonMSFT / AaronRobinsonMSFT/DNNE

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

未關閉
#128 1 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
C#
星號
488
分支
46
PR 合併指標
30 天內沒有已合併 PR

描述

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

The [Zig](https://ziglang.org) 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](https://docs.vezel.dev/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](https://www.nuget.org/packages?q=vezel.zig.toolsets) I publish on NuGet with every Zig release.)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。