================
@@ -71,10 +71,15 @@ function(get_arch_and_system_from_triple triple arch_var
sys_var)
# Setting OS name for GPU architectures.
list(GET triple_comps -1 gpu_target_sys)
- if(gpu_target_sys MATCHES "^amdhsa" OR gpu_target_sys MATCHES "^cuda")
+ if(gpu_target_sys MATCHES "^amdhsa" OR gpu_target_sys MATCHES "^cuda" OR
target_arch MATCHES "^spirv")
set(target_sys "gpu")
endif()
+ if (target_arch MATCHES "^spirv")
+ list(APPEND
+ LIBC_COMPILE_OPTIONS_DEFAULT "-emit-llvm")
----------------
fineg74 wrote:
Removed
https://github.com/llvm/llvm-project/pull/181049
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits