Skip to content

[SYCL][Driver] Need to duplicate options to be passed to both host and device compilers. #1808

Closed
@kbobrovs

Description

@kbobrovs

If it is needed to pass the same option from driver to both host and device compilers, then it must be added two-times - see clang/lib/Driver/ToolChains/Clang.cpp, for example:
4124:CmdArgs.push_back("-fsycl");
...
6150:CmdArgs.push_back("-fsycl");

This is quite error prone and inconvenient - should be automated: option placed in one place, driver does the duplication itself.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions