[clang] [llvm] [clang-linker-wrapper][SYCL] Support relocatable linking (PR #242098)

Yury Plyakhin via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 13 15:49:47 PST 2026


================
@@ -319,11 +319,14 @@
 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o \
 // RUN:   -fembed-offload-object=%t.out
 // RUN: clang-linker-wrapper --print-wrapped-module --dry-run --host-triple=x86_64-unknown-linux-gnu \
-// RUN:   --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefixes=SYCL
+// RUN:   --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefixes=SYCL,SYCL-NOREL
----------------
YuriPlyakhin wrote:

For consistency with the `OpenMP`, `HIP`, and `CUDA` `RELOCATABLE-LINK` checks in `linker-wrapper.c`, could you please add a SYCL case that checks the -r command sequence?

https://github.com/llvm/llvm-project/pull/242098


More information about the cfe-commits mailing list