Skip to content

Commit 9f0c1e3

Browse files
Stephen GutekanstStephen Gutekanst
Stephen Gutekanst
authored and
Stephen Gutekanst
committed
gpu-dawn: prevent abseil from using pthread on Windows
Helps hexops/mach#86 Signed-off-by: Stephen Gutekanst <[email protected]>
1 parent 5799c75 commit 9f0c1e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.zig

+1
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ fn buildLibAbseilCpp(b: *Builder, step: *std.build.LibExeObjStep, options: Optio
10241024
include("libs/dawn"),
10251025
include("libs/dawn/third_party/abseil-cpp"),
10261026
}) catch unreachable;
1027+
if (target.os.tag == .windows) flags.append("-DABSL_FORCE_THREAD_IDENTITY_MODE=2") catch unreachable;
10271028

10281029
// absl
10291030
appendLangScannedSources(b, lib, options, .{

0 commit comments

Comments
 (0)