Commit 869c2a03f3

Andrew Kelley <andrew@ziglang.org>
2024-03-20 19:25:54
mingw-w64 updater: don't include windowsapp or onecore APIs
1 parent 25fb6de
Changed files (1)
tools/update_mingw.zig
@@ -94,6 +94,12 @@ pub fn main() !void {
 
             if (blacklisted) continue;
 
+            if (std.mem.endsWith(u8, entry.basename, "_windowsapp.def"))
+                continue;
+
+            if (std.mem.endsWith(u8, entry.basename, "_onecore.def"))
+                continue;
+
             src_crt_dir.copyFile(entry.path, dest_crt_dir, entry.path, .{}) catch |err| {
                 std.log.err("unable to copy {s}: {s}", .{ entry.path, @errorName(err) });
                 fail = true;