[libclc] [libclc] Give a helpful error when an unknown target is requested (PR #111528)

David Spickett via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 05:49:44 PDT 2024


================
@@ -151,6 +147,17 @@ if( "spirv-mesa3d-" IN_LIST LIBCLC_TARGETS_TO_BUILD OR "spirv64-mesa3d-" IN_LIST
   endif()
 endif()
 
+if( LIBCLC_TARGETS_TO_BUILD STREQUAL "all" )
----------------
DavidSpickett wrote:

I've put this after the spir-v tool check so that if you already knew to ask for `spirv-mesa3d-`, you will still get an error if the tool is not installed. Instead of getting "unknown target spirv-mesa3d-".

https://github.com/llvm/llvm-project/pull/111528


More information about the cfe-commits mailing list