https://github.com/srividya-sundaram updated 
https://github.com/llvm/llvm-project/pull/196656

>From 0e9e0e5f27bbc561ee86e1923dab862e1e4b31cd Mon Sep 17 00:00:00 2001
From: srividya sundaram <[email protected]>
Date: Mon, 27 Jul 2026 10:52:20 -0700
Subject: [PATCH] [clang][test][SYCL] Fix sycl-rtlib-sysroot-mismatch test to
 supply spirv64 resource-dir fixture

---
 clang/test/Driver/sycl-rtlib-sysroot-mismatch.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/clang/test/Driver/sycl-rtlib-sysroot-mismatch.cpp 
b/clang/test/Driver/sycl-rtlib-sysroot-mismatch.cpp
index 87ed4ba1f9ff7..8a339edaeeeca 100644
--- a/clang/test/Driver/sycl-rtlib-sysroot-mismatch.cpp
+++ b/clang/test/Driver/sycl-rtlib-sysroot-mismatch.cpp
@@ -5,13 +5,15 @@
 // RUN: rm -rf %t && mkdir -p %t/bin %t/lib
 // RUN: touch %t/lib/libLLVMSYCL.so
 // RUN: ln -s %clang %t/bin/clang
-// RUN: %t/bin/clang -### -no-canonical-prefixes 
--target=x86_64-unknown-linux-gnu -fsycl --sysroot=/nonexistent-prefix %s 2>&1 \
+// RUN: %t/bin/clang -### -no-canonical-prefixes 
--target=x86_64-unknown-linux-gnu -fsycl \
+// RUN:   -resource-dir=%S/Inputs/spirv64-sycl --sysroot=/nonexistent-prefix 
%s 2>&1 \
 // RUN:   | FileCheck -check-prefix=CHECK-FLAT %s
 
 // RUN: rm -rf %t && mkdir -p %t/bin %t/lib/x86_64-unknown-linux-gnu
 // RUN: touch %t/lib/x86_64-unknown-linux-gnu/libLLVMSYCL.so
 // RUN: ln -s %clang %t/bin/clang
-// RUN: %t/bin/clang -### -no-canonical-prefixes 
--target=x86_64-unknown-linux-gnu -fsycl --sysroot=/nonexistent-prefix %s 2>&1 \
+// RUN: %t/bin/clang -### -no-canonical-prefixes 
--target=x86_64-unknown-linux-gnu -fsycl \
+// RUN:   -resource-dir=%S/Inputs/spirv64-sycl --sysroot=/nonexistent-prefix 
%s 2>&1 \
 // RUN:   | FileCheck -check-prefix=CHECK-PER-TARGET %s
 
 // CHECK-FLAT: "{{.*}}/bin/../lib/libLLVMSYCL.so"

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to