0002-third-party-dawn.patch 626 B

12345678910111213
  1. diff --git a/src/dawn/common/Platform.h b/src/dawn/common/Platform.h
  2. index 8e81b489b..a20bcbc17 100644
  3. --- a/src/dawn/common/Platform.h
  4. +++ b/src/dawn/common/Platform.h
  5. @@ -68,7 +68,7 @@
  6. #endif
  7. #if defined(_WIN64) || defined(__aarch64__) || defined(__x86_64__) || defined(__mips64__) || \
  8. - defined(__s390x__) || defined(__PPC64__)
  9. + defined(__s390x__) || defined(__PPC64__) || (defined(__riscv) && __riscv_xlen == 64)
  10. #define DAWN_PLATFORM_64_BIT 1
  11. static_assert(sizeof(sizeof(char)) == 8, "Expect sizeof(size_t) == 8");
  12. #elif defined(_WIN32) || defined(__arm__) || defined(__i386__) || defined(__mips32__) || \