Skip to content

[SYCL][E2E] Use %cxx_std_optionc++20 instead of -std=c++20 - #23611

Merged
againull merged 1 commit into
syclfrom
private/udit/code_loc_kernel_obj
Oct 23, 2026
Merged

againull merged 1 commit into
syclfrom
private/udit/code_loc_kernel_obj

Conversation

@uditagarwal97

Copy link
Copy Markdown
Contributor

This test is failing with clang-cl with the following error:

icx: error: unknown argument ignored in clang-cl '-std=c++20'; did you mean '-Qstd=c++20'? [-Werror,-Wunknown-argument]

@uditagarwal97
uditagarwal97 requested a review from a team as a code owner October 23, 2026 17:19
@uditagarwal97
uditagarwal97 requested review from cperkinsintel and dm-vodopyanov and a balanced review from Copilot October 23, 2026 17:19
@uditagarwal97 uditagarwal97 self-assigned this Oct 23, 2026
@uditagarwal97

Copy link
Copy Markdown
Contributor Author

@mieshkiwrk fyi

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 one-line change uses the existing compiler-specific substitution without changing test behavior.

No open issues 🎉

What changed in this PR

This PR fixes the SYCL tracing end-to-end test’s C++20 compiler option so it works with both clang-cl and clang++.

Changes:

  • Replaces -std=c++20 with the compiler-aware %cxx_std_optionc++20 substitution.
  • Leaves test logic and expected tracing output unchanged.
File Description
sycl/​test-e2e/​Tracing/​code_location_kernel_obj_sequence.cpp Uses the portable C++20 option in the test build command.

Review effort: Balanced

@againull
againull merged commit 0c78c28 into sycl Oct 23, 2026
31 of 33 checks passed
@againull
againull deleted the private/udit/code_loc_kernel_obj branch October 23, 2026 20:50
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.

3 participants