Skip pthread example on Windows.

This commit is contained in:
Ryan Roden-Corrent 2021-10-14 06:56:43 -04:00
parent 0a6609b213
commit bc680bd5cf
No known key found for this signature in database
GPG Key ID: 435D8B10692555C9

View File

@ -18,6 +18,9 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi
const name = entry.name[0..extension_idx];
const path = try std.fs.path.join(b.allocator, &.{ module, entry.name });
// zig's mingw headers do not include pthread.h
if (std.mem.eql(u8, "core_loading_thread", name) and target.getOsTag() == .windows) continue;
const exe = b.addExecutable(name, path);
exe.setTarget(target);
exe.setBuildMode(mode);