[llvm] [libsycl] Add lit configuration files and basic test (PR #177407)
Kseniya Tikhomirova via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 11 02:31:43 PST 2026
================
@@ -0,0 +1,26 @@
+cmake_minimum_required(VERSION 3.20.0)
+
+message("Configuring libsycl tests")
+
+set(LIBSYCL_CXX_COMPILER "${LLVM_BINARY_DIR}/bin/clang++")
+set(LIBSYCL_TEST_COMPILER_OPTIONS "" CACHE STRING
+ "SYCL compiler options for building libsycl tests")
+
+configure_lit_site_cfg(
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
+ MAIN_CONFIG
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
+)
+
+list(APPEND LIBSYCL_TEST_DEPS
----------------
KseniyaTikhomirova wrote:
some projects use target names in add_lit_testsuite directly without proxy var as here.
Although for example clang uses the same approach as we are https://github.com/llvm/llvm-project/blob/main/clang/test/CMakeLists.txt#L224
https://github.com/llvm/llvm-project/pull/177407
More information about the llvm-commits
mailing list