-
Notifications
You must be signed in to change notification settings - Fork 760
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
[SYCL][RTC] Rework handling of build_options
#17405
Conversation
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
I'll document the unsupported options we settle on here in the extension's implementation notes section in a separate PR. |
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
Companion spec PR: #17459 |
std::vector<std::string> flags{"-Xs '-doubleGRF'", | ||
"-Xs'-Xfinalizer \"-printregusage\"'"}; | ||
std::vector<std::string> flags{"-Xs", "-doubleGRF", | ||
"-XsXfinalizer \"-printregusage\""}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cperkinsintel This occurred to me while working on the documentation:
- Do we still need to support the implicit unquoting, given
build_options
are always a vector? I didn't find that in the "normal" option handling (but might have overlooked it). - The
-Xs
option says that for the joined form, a dash is inserted automatically, so-XsDfoo
becomes-Dfoo
when passed to the target compiler.
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
I realised that invalid options shall trigger an exception with |
… detected Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
Done. @sommerlukas you may want to review b8b5d86. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synced internally about test changes. LGTM.
Reject user-supplied arguments a bit more coarsely based on their kind or relation to an unsupported feature.