================
@@ -14,21 +16,29 @@ file(MAKE_DIRECTORY "${_test_dir}")
message(STATUS "Check for working CLC compiler: ${CMAKE_CLC_COMPILER}")
-execute_process(
- 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
-)
+# Test that the compiler works for all targets in LIBCLC_TARGETS_TO_BUILD
+foreach(_target ${LIBCLC_TARGETS_TO_BUILD})
+ # Convert libclc target to clang triple
+ libclc_target_to_clang_triple(${_target} _clang_triple)
----------------
jhuber6 wrote:
This test was more just to test that the compile can emit OpenCL at all, it
didn't really specify a target but I can see that being problematic if the
default target is something weird. Maybe we should just hard-code it to
something?
https://github.com/llvm/llvm-project/pull/185376
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits