move the list of installation files from CMakeLists.txt into build.zig #2874
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
stage1
The process of building from source via WebAssembly and the C backend.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
CMakeLists.txt has a giant list of files that we want to ship with zig. This is annoying for several reasons:
make install
to take a long time even when the file system operations complete quickly.All of these issues can be solved by moving this from CMakeLists.txt to build.zig.
zig0 build install-the-files
(or a better named step), just like it already does to build libuserland.Another reason we list files explicitly is that there are some large test files that we wish to not install. For example
std/special/compiler_rt/udivmodti4_test.zig
is 9.8 MiB.This can be solved with the zig build glob feature supporting a list of exceptions. Or perhaps even a globbed list of exceptions and we can except
*_test.zig
.The text was updated successfully, but these errors were encountered: