[libclc] [libclc] Add initial support for libclc execution conformance tests (PR #214072)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 18:47:23 PDT 2026
================
@@ -6,6 +6,33 @@ else()
set(LIBCLC_TARGET_CPU "")
endif()
+include(CheckCXXCompilerFlag)
+
+set(LIBCLC_TEST_ARCHITECTURE "" CACHE STRING
+ "Architecture for libclc execution tests; 'native' or a specific name")
+
+set(LIBCLC_OFFLOAD_LIBDIR "")
+
+if(NOT LIBCLC_TEST_ARCHITECTURE)
+ check_cxx_compiler_flag("-march=native" LIBCLC_HAS_NATIVE_DEVICE)
----------------
wenju-he wrote:
is this checking host target support for -march=native rather than libclc target?
https://github.com/llvm/llvm-project/pull/214072
More information about the cfe-commits
mailing list