From 8044556c54a6cdad45b553fe36cfeb68fbe38523 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 25 Jun 2023 07:46:47 -0700 Subject: [PATCH] gpu-dawn: fix musl build Signed-off-by: Stephen Gutekanst --- libs/gpu-dawn/sdk.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gpu-dawn/sdk.zig b/libs/gpu-dawn/sdk.zig index 0804b013..80773d90 100644 --- a/libs/gpu-dawn/sdk.zig +++ b/libs/gpu-dawn/sdk.zig @@ -1259,6 +1259,9 @@ pub fn Sdk(comptime deps: anytype) type { include("libs/dawn"), include("libs/dawn/third_party/abseil-cpp"), "-Wno-deprecated-declarations", + + // musl needs this defined in order for off64_t to be a type, which abseil-cpp uses + "-D_FILE_OFFSET_BITS", }); if (target.os.tag == .windows) try flags.appendSlice(&.{ "-DABSL_FORCE_THREAD_IDENTITY_MODE=2",