================
@@ -5074,6 +5074,11 @@ bool CompilerInvocation::CreateFromArgsImpl(
if (LangOpts.OpenMPIsTargetDevice)
Res.getTargetOpts().HostTriple = Res.getFrontendOpts().AuxTriple;
+ // Set the default triple for SYCL device compilation.
+ if (LangOpts.SYCLIsDevice && !Args.hasArg(options::OPT_triple)) {
+ Res.getTargetOpts().Triple = "spirv64-unknown-unknown";
+ }
----------------
Fznamznon wrote:
Code style nit
```suggestion
if (LangOpts.SYCLIsDevice && !Args.hasArg(options::OPT_triple))
Res.getTargetOpts().Triple = "spirv64-unknown-unknown";
```
https://github.com/llvm/llvm-project/pull/172366
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits