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)
45
45
set (target_arch "i386" )
46
46
elseif (target_arch MATCHES "^(powerpc|ppc)" )
47
47
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" )
48
52
elseif (target_arch MATCHES "^riscv32" )
49
53
set (target_arch "riscv32" )
50
54
elseif (target_arch MATCHES "^riscv64" )
@@ -154,6 +158,10 @@ elseif(LIBC_TARGET_ARCHITECTURE STREQUAL "x86_64")
154
158
set (LIBC_TARGET_ARCHITECTURE_IS_X86_64 TRUE )
155
159
elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "i386" )
156
160
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 )
157
165
elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "riscv64" )
158
166
set (LIBC_TARGET_ARCHITECTURE_IS_RISCV64 TRUE )
159
167
set (LIBC_TARGET_ARCHITECTURE "riscv" )
You can’t perform that action at this time.
0 commit comments