Modify the naming convention of LoongArch64 platform Both v8 and golang use loong64 for short instead of la64. Change-Id: I4f7f96942ec1aa645247cea230fe0ee3a59cb8db Reviewed-on: https://gn-review.googlesource.com/c/gn/+/12660 Reviewed-by: Brett Wilson <brettw@chromium.org> Commit-Queue: Brett Wilson <brettw@chromium.org>
diff --git a/src/gn/args.cc b/src/gn/args.cc index 219c950..133eff1 100644 --- a/src/gn/args.cc +++ b/src/gn/args.cc
@@ -340,7 +340,7 @@ static const char kRISCV32[] = "riscv32"; static const char kRISCV64[] = "riscv64"; static const char kE2K[] = "e2k"; - static const char kLA64[] = "loong64"; + static const char kLOONG64[] = "loong64"; const char* arch = nullptr; // Set the host CPU architecture based on the underlying OS, not @@ -372,7 +372,7 @@ else if (os_arch == "e2k") arch = kE2K; else if (os_arch == "loongarch64") - arch = kLA64; + arch = kLOONG64; else CHECK(false) << "OS architecture not handled. (" << os_arch << ")";
diff --git a/src/util/build_config.h b/src/util/build_config.h index 01dd9bd..139f97a 100644 --- a/src/util/build_config.h +++ b/src/util/build_config.h
@@ -175,13 +175,13 @@ #define ARCH_CPU_LITTLE_ENDIAN 1 #elif defined(__loongarch__) #if defined(__LP64__) -#define ARCH_CPU_LOONGARCH_FAMILY 1 -#define ARCH_CPU_LA64 1 +#define ARCH_CPU_LOONG_FAMILY 1 +#define ARCH_CPU_LOONG64 1 #define ARCH_CPU_64_BITS 1 #define ARCH_CPU_LITTLE_ENDIAN 1 #else -#define ARCH_CPU_LOONGARCH_FAMILY 1 -#define ARCH_CPU_LA 1 +#define ARCH_CPU_LOONG_FAMILY 1 +#define ARCH_CPU_LOONG32 1 #define ARCH_CPU_32_BITS 1 #define ARCH_CPU_LITTLE_ENDIAN 1 #endif