gpu-dawn: fix musl build

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-25 07:46:47 -07:00
parent f3f7e7c1cf
commit 8044556c54

View file

@ -1259,6 +1259,9 @@ pub fn Sdk(comptime deps: anytype) type {
include("libs/dawn"), include("libs/dawn"),
include("libs/dawn/third_party/abseil-cpp"), include("libs/dawn/third_party/abseil-cpp"),
"-Wno-deprecated-declarations", "-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(&.{ if (target.os.tag == .windows) try flags.appendSlice(&.{
"-DABSL_FORCE_THREAD_IDENTITY_MODE=2", "-DABSL_FORCE_THREAD_IDENTITY_MODE=2",