gpu-dawn: prevent abseil from using pthread on Windows

Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-13 16:42:31 -07:00 committed by Stephen Gutekanst
parent d32cc38a57
commit 53e85b8dac

View file

@ -1024,6 +1024,7 @@ fn buildLibAbseilCpp(b: *Builder, step: *std.build.LibExeObjStep, options: Optio
include("libs/dawn"),
include("libs/dawn/third_party/abseil-cpp"),
}) catch unreachable;
if (target.os.tag == .windows) flags.append("-DABSL_FORCE_THREAD_IDENTITY_MODE=2") catch unreachable;
// absl
appendLangScannedSources(b, lib, options, .{