Skip to content

[RFC] 3.0 Updates - Zig Support #962

@crazywhalecc

Description

@crazywhalecc

[RFC] 3.0 Updates - Zig Support

In current 2.x version, we regard zig as an alternative build toolchain. Based on our previous ideas, we will use ZigToolchain as the default build toolchain for Linux in version 3.0. This process will be virtually seamless for the normal build workflow, requiring almost no modifications.

However, given the current stability of the toolchain, whether to retain support for the old toolchain in version 3.0 is a big question mark.

Because gcc/clang has stood the test of time and solutions can be found for most situations, while ziglang is still in version 0.x, but SPC currently uses it almost perfectly, so we're unsure whether to officially abandon other build solutions.

This is because, to date, SPC, whether used to build PHP, extensions, or other packages, has aimed to build portable binaries; we won't invest too much effort in building ordinary, dynamically linked, and non-portable binaries.

If you have any question or have better suggestions, please leave comment here with quote.

Metadata

Metadata

Labels

RFCRequest for comments

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions