diff options
| author | kcbanner <kcbanner@gmail.com> | 2025-10-06 22:02:14 -0400 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2025-10-09 01:06:09 -0400 |
| commit | 4aa4d80ec640b869939111f35d7bf2509a227793 (patch) | |
| tree | 1908ca29e6ddb56801d0c885ed277e2712c5f0f5 /src/Compilation.zig | |
| parent | 328ae41468f3514251ac1b0726c41eca9fbc3fb5 (diff) | |
| download | zig-4aa4d80ec640b869939111f35d7bf2509a227793.tar.gz zig-4aa4d80ec640b869939111f35d7bf2509a227793.zip | |
- Rework translate-c to integrate with the build system (by outputing error bundles on stdout) via --zig-integration
- Revive some of the removed cache integration logic in `cmdTranslateC` now that `translate-c` can return error bundles
- Fixup inconsistent path separators (on Windows) when building the aro include path
- Move some error bundle logic from resinator into aro.Diagnostics
- Add `ErrorBundle.addRootErrorMessageWithNotes` (extracted from resinator)
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7c5f699d83..8a5f902763 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3398,7 +3398,7 @@ fn flush( /// Linker backends which do not have this requirement can fall back to the simple /// implementation at the bottom of this function. /// This function is only called when CacheMode is `whole`. -fn renameTmpIntoCache( +pub fn renameTmpIntoCache( cache_directory: Cache.Directory, tmp_dir_sub_path: []const u8, o_sub_path: []const u8, @@ -6684,7 +6684,7 @@ pub fn addTranslateCCArgs( try argv.appendSlice(&.{ "-x", "c" }); - const resource_path = try comp.dirs.zig_lib.join(arena, &.{"compiler/aro/include"}); + const resource_path = try comp.dirs.zig_lib.join(arena, &.{ "compiler", "aro", "include" }); try argv.appendSlice(&.{ "-isystem", resource_path }); try comp.addCommonCCArgs(arena, argv, ext, out_dep_path, owner_mod, .aro); |
