File reproducible.patch of Package zig

--- zig-0.14.1.orig/lib/compiler/build_runner.zig	2025-06-27 06:25:05.255382987 +0800
+++ zig-0.14.1/lib/compiler/build_runner.zig	2025-06-27 06:57:17.409230184 +0800
@@ -66,6 +66,12 @@
         .handle = try std.fs.cwd().makeOpenPath(global_cache_root, .{}),
     };
 
+    // Avoid using native binaries during build to not influence zig-cache hashes
+    const host_query: std.Target.Query = .{
+        .cpu_model = .baseline,
+        .os_tag = builtin.target.os.tag,
+    };
+
     var graph: std.Build.Graph = .{
         .arena = arena,
         .cache = .{
@@ -77,8 +83,8 @@
         .global_cache_root = global_cache_directory,
         .zig_lib_directory = zig_lib_directory,
         .host = .{
-            .query = .{},
-            .result = try std.zig.system.resolveTargetQuery(.{}),
+            .query = host_query,
+            .result = try std.zig.system.resolveTargetQuery(host_query),
         },
     };
 
openSUSE Build Service is sponsored by