[libclc] [libclc][CMake] Test compiler for all build targets (PR #185376)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 07:09:37 PDT 2026
================
@@ -114,6 +112,14 @@ else()
endforeach()
endif()
+if( NOT LIBCLC_TARGETS_TO_BUILD )
+ message( FATAL_ERROR
+ "LIBCLC_TARGETS_TO_BUILD is empty. Specify at least one target or use 'all'.\n"
+ "Valid targets are: ${LIBCLC_TARGETS_ALL}\n")
+endif()
+
+enable_language( CLC )
----------------
jhuber6 wrote:
Checking for language support shouldn't depend on the targets, we could maybe have a separate check that verifies the passed-in triple is valid.
https://github.com/llvm/llvm-project/pull/185376
More information about the cfe-commits
mailing list