aboutsummaryrefslogtreecommitdiff
path: root/src/resinator/preprocess.zig
AgeCommit message (Collapse)Author
2024-03-11Lazily compile the `zig rc` subcommand and use it during `zig build-exe`Ryan Liptak
This moves .rc/.manifest compilation out of the main Zig binary, contributing towards #19063 Also: - Make resinator use Aro as its preprocessor instead of clang - Sync resinator with upstream
2023-10-18Sync resinator with upstream and fix INCLUDE env var handlingRyan Liptak
The INCLUDE variable being used during `.rc` preprocessing was an accidental regression in https://github.com/ziglang/zig/pull/17412. Closes #17585. resinator changes: source_mapping: Protect against NUL bytes in #line filenames lex: Avoid recalculating column on every tab stop within string literals Proper error handling for failing to open cwd instead of `catch unreachable` Use platform-specific delimiter for INCLUDE env var parsing
2023-10-17rework zig envAndrew Kelley
Introduce introspect.EnvVar which tracks all the environment variables that are observed by the compiler, so that we can print them with `zig env`. The `zig env` command now prints both the resolved values as well as all the possibly observed environment variables.
2023-10-12Add `zig rc` subcommand, a drop-in replacement for rc.exeRyan Liptak
Uses resinator under-the-hood (see https://github.com/ziglang/zig/pull/17069) Closes #9564