File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ macro(detect_target_arch)
152
152
check_symbol_exists (__aarch64__ "" __AARCH64 )
153
153
check_symbol_exists (__x86_64__ "" __X86_64 )
154
154
check_symbol_exists (__i386__ "" __I386 )
155
+ check_symbol_exists (__hexagon__ "" __HEXAGON )
155
156
check_symbol_exists (__loongarch__ "" __LOONGARCH )
156
157
check_symbol_exists (__mips__ "" __MIPS )
157
158
check_symbol_exists (__mips64__ "" __MIPS64 )
@@ -182,6 +183,8 @@ macro(detect_target_arch)
182
183
else ()
183
184
message (FATAL_ERROR "Unsupported pointer size for X86_64" )
184
185
endif ()
186
+ elseif (__HEXAGON )
187
+ add_default_target_arch (hexagon )
185
188
elseif (__I386 )
186
189
add_default_target_arch (i386 )
187
190
elseif (__LOONGARCH )
Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ macro(test_targets)
218
218
test_target_arch (amdgcn "" "--target=amdgcn-amd-amdhsa" "-nogpulib"
219
219
"-flto" "-fconvergent-functions"
220
220
"-Xclang -mcode-object-version=none" )
221
+ elseif ("${COMPILER_RT_DEFAULT_TARGET_ARCH} " MATCHES "hexagon" )
222
+ test_target_arch (hexagon "" "" )
221
223
elseif ("${COMPILER_RT_DEFAULT_TARGET_ARCH} " MATCHES "loongarch64" )
222
224
test_target_arch (loongarch64 "" "" )
223
225
elseif ("${COMPILER_RT_DEFAULT_TARGET_ARCH} " MATCHES "powerpc64le|ppc64le" )
You can’t perform that action at this time.
0 commit comments