Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cmake argument passthrough in the SYCL configure wrapper #17189

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

ldrumm
Copy link
Contributor

@ldrumm ldrumm commented Feb 26, 2025

Hundreds of --cmake-opt=-DFOO=BAR on the command line make it hard to see the wood for the trees, so introduce an alternative which is to simply pass unknown argument flags straight through to cmake. This should make using the wrapper a little more pleasant and readable.

@ldrumm ldrumm requested a review from a team as a code owner February 26, 2025 11:45
Hundreds of `--cmake-opt=-DFOO=BAR` on the command line make it hard to
see the wood for the trees, so introduce an alternative which is to
simply pass unknown argument flags straight through to cmake. This
should make using the wrapper a little more pleasant and readable.
@ldrumm ldrumm requested review from a team as code owners February 26, 2025 11:55
Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

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

lgtm, good idea

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

  1. Ideally, we should drop the script and use cmake caches instead. Noone has volunteered to do that so far... ;(
  2. Maybe do that for -D* only?

@ldrumm
Copy link
Contributor Author

ldrumm commented Feb 26, 2025 via email

@aelovikov-intel
Copy link
Contributor

Do what for -D only?

Passthrough.

@ldrumm
Copy link
Contributor Author

ldrumm commented Feb 26, 2025

I've already found the passthrough useful for other flags locally (e.g.) --trace so I think it's good as-is

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.

4 participants