Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clang/test/Driver/sycl-offload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
/// ###########################################################################

/// Check warning for empty -fsycl-targets
// RUN: %clang -### -fsycl --offload-new-driver --sysroot=%S/Inputs/SYCL -fsycl-targets= %s 2>&1 \
// RUN: %clang -### -fsycl --offload-new-driver -fsycl-targets= %s 2>&1 \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to work as there is no device compilation that occurs when -fsycl-targets= is passed on the command line. The driver diagnostic states that the argument is unused, which implies that -fsycl --offload-new-driver <file> is performed which should do a device compilation. As it's not doing a device compile, I interpret that as a bug in the driver.

@jinge90 jinge90 Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @mdtoguchi
You are right, we will still need to locate the dummy devicelibs once the bug is fixed, will close this PR and file a bug ticket for this issue.

// RUN: | FileCheck -check-prefix=CHK-EMPTY-SYCLTARGETS %s
// RUN: %clang_cl -### -fsycl --offload-new-driver /clang:--sysroot=%S/Inputs/SYCL -fsycl-targets= %s 2>&1 \
// RUN: %clang_cl -### -fsycl --offload-new-driver -fsycl-targets= %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHK-EMPTY-SYCLTARGETS %s
// CHK-EMPTY-SYCLTARGETS: warning: joined argument expects additional value: '-fsycl-targets='

Expand Down
Loading