File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ function(get_arch_and_system_from_triple triple arch_var sys_var)
4545 set (target_arch "i386" )
4646 elseif (target_arch MATCHES "^(powerpc|ppc)" )
4747 set (target_arch "power" )
48+ elseif (target_arch MATCHES "^loongarch32" )
49+ set (target_arch "loongarch32" )
50+ elseif (target_arch MATCHES "^loongarch64" )
51+ set (target_arch "loongarch64" )
4852 elseif (target_arch MATCHES "^riscv32" )
4953 set (target_arch "riscv32" )
5054 elseif (target_arch MATCHES "^riscv64" )
@@ -154,6 +158,10 @@ elseif(LIBC_TARGET_ARCHITECTURE STREQUAL "x86_64")
154158 set (LIBC_TARGET_ARCHITECTURE_IS_X86_64 TRUE )
155159elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "i386" )
156160 set (LIBC_TARGET_ARCHITECTURE_IS_X86 TRUE )
161+ elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "loongarch32" )
162+ set (LIBC_TARGET_ARCHITECTURE_IS_LOONGARCH32 TRUE )
163+ elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "loongarch64" )
164+ set (LIBC_TARGET_ARCHITECTURE_IS_LOONGARCH64 TRUE )
157165elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "riscv64" )
158166 set (LIBC_TARGET_ARCHITECTURE_IS_RISCV64 TRUE )
159167 set (LIBC_TARGET_ARCHITECTURE "riscv" )
You can’t perform that action at this time.
0 commit comments