[llvm] [libsycl][E2E] Compile all E2E tests with -fsycl (PR #204115)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 09:58:30 PDT 2026


https://github.com/sergey-semenov updated https://github.com/llvm/llvm-project/pull/204115

>From 2f6422a0d49c10bd91904134eb1b7f9fda3cd665 Mon Sep 17 00:00:00 2001
From: Sergey Semenov <sergey.semenov at intel.com>
Date: Tue, 16 Jun 2026 03:42:36 -0700
Subject: [PATCH] [libsycl][E2E] Compile all E2E tests with -fsycl

---
 libsycl/test/basic/platform_get_devices.cpp |  2 +-
 libsycl/test/lit.cfg.py                     | 14 --------------
 libsycl/test/usm/alloc_functions.cpp        |  2 +-
 3 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/libsycl/test/basic/platform_get_devices.cpp b/libsycl/test/basic/platform_get_devices.cpp
index ea8652a313e8a..37e9550e591a9 100644
--- a/libsycl/test/basic/platform_get_devices.cpp
+++ b/libsycl/test/basic/platform_get_devices.cpp
@@ -1,5 +1,5 @@
 // REQUIRES: any-device
-// RUN: %clangxx %sycl_options %s -o %t.out
+// RUN: %clangxx -fsycl %s -o %t.out
 // RUN: %t.out
 //
 // Tests platform::get_devices for each device type.
diff --git a/libsycl/test/lit.cfg.py b/libsycl/test/lit.cfg.py
index 2610f23ba90a8..e0073e064d3fc 100644
--- a/libsycl/test/lit.cfg.py
+++ b/libsycl/test/lit.cfg.py
@@ -112,20 +112,6 @@ def __exit__(self, exc_type, exc_value, exc_traceback):
         os.environ.update(self.old_environ)
         os.chdir(self.old_dir)
 
-
-# General substritutions
-config.substitutions.append(
-    (
-        "%sycl_options",
-        " -lLLVMSYCL"
-        + " -isystem "
-        + config.libsycl_include
-        + " -isystem "
-        + os.path.join(config.libsycl_include, "sycl")
-        + " -L"
-        + config.libsycl_libs_dir,
-    )
-)
 config.substitutions.append(("%sycl_libs_dir", config.libsycl_libs_dir))
 config.substitutions.append(("%sycl_static_libs_dir", config.libsycl_libs_dir))
 config.substitutions.append(("%obj_ext", ".o"))
diff --git a/libsycl/test/usm/alloc_functions.cpp b/libsycl/test/usm/alloc_functions.cpp
index 234f5cbd433b3..7df7206ef532e 100644
--- a/libsycl/test/usm/alloc_functions.cpp
+++ b/libsycl/test/usm/alloc_functions.cpp
@@ -1,5 +1,5 @@
 // REQUIRES: any-device
-// RUN: %clangxx %sycl_options %s -o %t.out
+// RUN: %clangxx -fsycl %s -o %t.out
 // RUN: %t.out
 
 #include <sycl/sycl.hpp>



More information about the llvm-commits mailing list