Closed
Description
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.