File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ function(get_arch_and_system_from_triple triple arch_var sys_var)
53
53
set (target_arch "amdgpu" )
54
54
elseif (target_arch MATCHES "^nvptx64" )
55
55
set (target_arch "nvptx" )
56
+ elseif (target_arch MATCHES "^spirv64" )
57
+ set (target_arch "spirv64" )
56
58
else ()
57
59
return ()
58
60
endif ()
@@ -162,6 +164,8 @@ elseif(LIBC_TARGET_ARCHITECTURE STREQUAL "amdgpu")
162
164
set (LIBC_TARGET_ARCHITECTURE_IS_AMDGPU TRUE )
163
165
elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "nvptx" )
164
166
set (LIBC_TARGET_ARCHITECTURE_IS_NVPTX TRUE )
167
+ elseif (LIBC_TARGET_ARCHITECTURE STREQUAL "spirv64" )
168
+ set (LIBC_TARGET_ARCHITECTURE_IS_SPIRV TRUE )
165
169
else ()
166
170
message (FATAL_ERROR
167
171
"Unsupported libc target architecture ${LIBC_TARGET_ARCHITECTURE} " )
You can’t perform that action at this time.
0 commit comments