aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler
AgeCommit message (Collapse)Author
2024-03-10zig std: implement sources.tar endpointAndrew Kelley
except for the tar format being correct
2024-03-10zig std: use threads for the http serverAndrew Kelley
2024-03-10zig std: implement serving the wasm binaryAndrew Kelley
2024-03-10add skeleton of `zig std` command implAndrew Kelley
2024-03-06Sync Aro sources (#19199)Veikka Tuominen
ref: 02353ad9f17f659e173f68975a442fcec3dd2c94
2024-03-02move `zig objcopy` command to be lazily builtAndrew Kelley
part of #19063
2024-02-28zig fmt: off in the generated filesAndrew Kelley
2024-02-28make aro-based translate-c lazily built from sourceAndrew Kelley
Part of #19063. Primarily, this moves Aro from deps/ to lib/compiler/ so that it can be lazily compiled from source. src/aro_translate_c.zig is moved to lib/compiler/aro_translate_c.zig and some of Zig CLI logic moved to a main() function there. aro_translate_c.zig becomes the "common" import for clang-based translate-c. Not all of the compiler was able to be detangled from Aro, however, so it still, for now, remains being compiled with the main compiler sources due to the clang-based translate-c depending on it. Once aro-based translate-c achieves feature parity with the clang-based translate-c implementation, the clang-based one can be removed from Zig. Aro made it unnecessarily difficult to depend on with these .def files and all these Zig module requirements. I looked at the .def files and made these observations: - The canonical source is llvm .def files. - Therefore there is an update process to sync with llvm that involves regenerating the .def files in Aro. - Therefore you might as well just regenerate the .zig files directly and check those into Aro. - Also with a small amount of tinkering, the file size on disk of these generated .zig files can be made many times smaller, without compromising type safety in the usage of the data. This would make things much easier on Zig as downstream project, particularly we could remove those pesky stubs when bootstrapping. I have gone ahead with these changes since they unblock me and I will have a chat with Vexu to see what he thinks.
2024-02-27move `zig libc` command to be lazily builtAndrew Kelley
part of #19063 This is a prerequisite for doing the same for Resinator.
2024-02-26back out the build_runner.zig moving changeAndrew Kelley
I'd like to move this file but to do so requires a zig1.wasm update, so I'll choose a more opportune moment to make this change.
2024-02-26move lazily compiled source files to lib/compiler/Andrew Kelley