Skip to content

Commit 37ec4c2

Browse files
authored
[SYCL] Fix sycl/test-e2e/NewOffloadDriver/multisource.cpp (#16861)
The line removed makes the device objects have an `.llvm.offloading.section` in the elf, which causes clang-linker-wrapper to try to open the objects as new-style binaries, causing the test to fail.
1 parent 479da1d commit 37ec4c2

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5524,7 +5524,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
55245524
JA.isDeviceOffloading(Action::OFK_Host));
55255525
bool IsHostOffloadingAction =
55265526
JA.isHostOffloading(Action::OFK_OpenMP) ||
5527-
JA.isHostOffloading(Action::OFK_SYCL) ||
55285527
(JA.isHostOffloading(C.getActiveOffloadKinds()) &&
55295528
Args.hasFlag(options::OPT_offload_new_driver,
55305529
options::OPT_no_offload_new_driver,

sycl/test-e2e/NewOffloadDriver/multisource.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %{sycl_target_opts} --offload-new-driver %t.main.o %t.a -o %t4.fat
3838
// RUN: %{run} %t4.fat
3939

40-
// XFAIL: *
41-
// XFAIL-TRACKER: CMPLRLLVM-65101
42-
4340
// XFAIL: spirv-backend
4441
// XFAIL-TRACKER: CMPLRLLVM-64059
4542

0 commit comments

Comments
 (0)