[llvm] 313ce72 - [cmake] Support native LoongArch builds
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 00:10:52 PDT 2022
Author: WANG Xuerui
Date: 2022-08-01T15:10:24+08:00
New Revision: 313ce7217e650f3c5c404dcd70c729e003599a49
URL: https://github.com/llvm/llvm-project/commit/313ce7217e650f3c5c404dcd70c729e003599a49
DIFF: https://github.com/llvm/llvm-project/commit/313ce7217e650f3c5c404dcd70c729e003599a49.diff
LOG: [cmake] Support native LoongArch builds
Differential Revision: https://reviews.llvm.org/D130821
Added:
Modified:
llvm/cmake/config-ix.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 83512760d8dde..6beb25017ee50 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -498,6 +498,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "riscv64")
set(LLVM_NATIVE_ARCH RISCV)
elseif (LLVM_NATIVE_ARCH STREQUAL "m68k")
set(LLVM_NATIVE_ARCH M68k)
+elseif (LLVM_NATIVE_ARCH MATCHES "loongarch")
+ set(LLVM_NATIVE_ARCH LoongArch)
else ()
message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}")
endif ()
More information about the llvm-commits
mailing list