Skip to content

[SYCL][Driver][Test] Remove sysroot for test lines with empty targets - #23556

Open
jinge90 wants to merge 1 commit into
intel:syclfrom
jinge90:remove_sysroot_for_emtpy_targets_tests
Open

jinge90 wants to merge 1 commit into
intel:syclfrom
jinge90:remove_sysroot_for_emtpy_targets_tests

Conversation

@jinge90

@jinge90 jinge90 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Tests with empty fsycl-targets just emits warning and will not trigger device compilation, so devicelib is not involved, we can safely remove the sysroot.

@jinge90
jinge90 requested a review from a team as a code owner October 20, 2026 06:28
@jinge90
jinge90 requested a balanced review from Copilot October 20, 2026 06:28

Copilot AI left a comment

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.

🟢 Approval recommended

The test-only changes preserve warning coverage without requiring device libraries.

No open issues 🎉

What changed in this PR

Removes unnecessary sysroot arguments from SYCL driver tests for empty target lists, which do not trigger device compilation.

Changes:

  • Removes sysroot options from the %clang and %clang_cl test commands.
  • Preserves the existing warning check.
File Description
clang/​test/​Driver/​sycl-offload.cpp Simplifies empty-target test commands by removing unnecessary sysroots.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants