From 4aa4d80ec640b869939111f35d7bf2509a227793 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Mon, 6 Oct 2025 22:02:14 -0400 Subject: - 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) --- src/Compilation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Compilation.zig') 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); -- cgit v1.2.3