Initial loongarch port

This commit is contained in:
Leslie Zhai 2023-07-13 19:39:22 +08:00 committed by Hans Kristian Rosbach
parent e23130bdea
commit 70da27b86e
2 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,10 @@
#error archfound riscv32
#endif
// LOONGARCH
#elif defined(__loongarch_lp64)
#error archfound loongarch64
// Emscripten (WebAssembly)
#elif defined(__EMSCRIPTEN__)
#error archfound wasm32

View File

@ -90,6 +90,9 @@ elseif("${ARCH}" MATCHES "rs6000")
elseif("${ARCH}" MATCHES "riscv(32|64)")
set(BASEARCH "riscv")
set(BASEARCH_RISCV_FOUND TRUE)
elseif("${ARCH}" MATCHES "loongarch64")
set(BASEARCH "loongarch")
set(BASEARCH_LOONGARCH_FOUND TRUE)
elseif("${ARCH}" MATCHES "wasm32")
set(BASEARCH "wasm32")
set(BASEARCH_WASM32_FOUND TRUE)