From 79fe4ab42f1dd342981ef578f157862b597693fd Mon Sep 17 00:00:00 2001 From: Zhao Jiazhong Date: Thu, 25 May 2023 10:37:04 +0000 Subject: [PATCH] [loongarch] Cleanup deprecated built-in macro. "_LOONGARCH_SIM" is a deprecated built-in macro, and should not be used anymore. Bug: chromium:1448745 Change-Id: Ie62efd55ea5ffb8b90fca6f04feb785e5d2c1794 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134401 Auto-Submit: Zhao Jiazhong Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez Kokoro: Kokoro --- src/dawn/common/Platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dawn/common/Platform.h b/src/dawn/common/Platform.h index d0eeb779bf..ddaf1ad0e3 100644 --- a/src/dawn/common/Platform.h +++ b/src/dawn/common/Platform.h @@ -118,10 +118,10 @@ #elif defined(__loongarch__) #define DAWN_PLATFORM_IS_LOONGARCH 1 -#if _LOONGARCH_SIM == _ABILP32 -#define DAWN_PLATFORM_IS_LOONGARCH32 1 -#else +#if __loongarch_grlen == 64 #define DAWN_PLATFORM_IS_LOONGARCH64 1 +#else +#define DAWN_PLATFORM_IS_LOONGARCH32 1 #endif #elif defined(__riscv)