0002-dawn.patch 1.0 KB

1234567891011121314151617181920212223242526
  1. From 6baaa9b2a4298e7c71555a69aee72a5c63961c2b Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Fri, 22 Jul 2022 18:12:20 +0800
  4. Subject: [PATCH] common: Platform.h: add riscv64 architecture detection
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. src/dawn/common/Platform.h | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/dawn/common/Platform.h b/src/dawn/common/Platform.h
  10. index f9471021..cde97427 100644
  11. --- a/src/dawn/common/Platform.h
  12. +++ b/src/dawn/common/Platform.h
  13. @@ -68,7 +68,7 @@
  14. #endif
  15. #if defined(_WIN64) || defined(__aarch64__) || defined(__x86_64__) || defined(__mips64__) || \
  16. - defined(__s390x__) || defined(__PPC64__)
  17. + defined(__s390x__) || defined(__PPC64__) || (defined(__riscv) && __riscv_xlen == 64)
  18. # define DAWN_PLATFORM_64_BIT 1
  19. static_assert(sizeof(sizeof(char)) == 8, "Expect sizeof(size_t) == 8");
  20. #elif defined(_WIN32) || defined(__arm__) || defined(__i386__) || defined(__mips32__) || \
  21. --
  22. 2.30.2