From 869c2a03f3e99671fe0a9bacf13a8861b21097ef Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 20 Mar 2024 11:25:54 -0700 Subject: [PATCH] mingw-w64 updater: don't include windowsapp or onecore APIs --- tools/update_mingw.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/update_mingw.zig b/tools/update_mingw.zig index 7348546fd3..c4fc75759c 100644 --- a/tools/update_mingw.zig +++ b/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;