================
@@ -52,6 +56,10 @@ elseif("${LLVM_DEFAULT_TARGET_TRIPLE}" MATCHES "^nvptx" OR
"${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^nvptx")
set(target_name "nvptx")
list(APPEND compile_options --cuda-feature=+ptx63)
+elseif("${LLVM_DEFAULT_TARGET_TRIPLE}" MATCHES "^spirv64" OR
+ "${CMAKE_CXX_COMPILER_TARGET}" MATCHES "^spirv64")
+ set(target_name "spirv")
+ list(APPEND compile_options -emit-llvm -c)
----------------
jhuber6 wrote:
You should be setting the link options to `emit-llvm`, not manually putting in
`-c`.
https://github.com/llvm/llvm-project/pull/174675
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits