https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/185376
This fixes `error : unknown target triple 'unknown'` on Windows when clang is built with LLVM_TARGETS_TO_BUILD empty. >From 2bafccb1d76eaf76699e385f9e96a54c810a7543 Mon Sep 17 00:00:00 2001 From: Wenju He <[email protected]> Date: Mon, 9 Mar 2026 09:49:29 +0100 Subject: [PATCH] [libclc][CMake] Add spir64 target to clang compiler test This fixes `error : unknown target triple 'unknown'` on Windows when clang is built with LLVM_TARGETS_TO_BUILD empty. --- libclc/cmake/modules/CMakeTestCLCCompiler.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclc/cmake/modules/CMakeTestCLCCompiler.cmake b/libclc/cmake/modules/CMakeTestCLCCompiler.cmake index d18a818f93bfb..c4501c41a8ce8 100644 --- a/libclc/cmake/modules/CMakeTestCLCCompiler.cmake +++ b/libclc/cmake/modules/CMakeTestCLCCompiler.cmake @@ -15,7 +15,7 @@ file(MAKE_DIRECTORY "${_test_dir}") message(STATUS "Check for working CLC compiler: ${CMAKE_CLC_COMPILER}") execute_process( - COMMAND "${CMAKE_CLC_COMPILER}" -x cl -c -flto + COMMAND "${CMAKE_CLC_COMPILER}" -target spir64-unknown-unknown -x cl -c -flto -o "${_test_out}" "${_test_file}" RESULT_VARIABLE _clc_result ERROR_VARIABLE _clc_error _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
