Skip to content

Commit

Permalink
gpu-dawn: prevent abseil from using pthread on Windows
Browse files Browse the repository at this point in the history
Helps #86

Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Feb 20, 2022
1 parent d32cc38 commit fb25792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpu-dawn/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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, .{
Expand Down

0 comments on commit fb25792

Please sign in to comment.