Skip to content

Commit 351af24

Browse files
steffenlarsenMichel Migdal
andauthored
[SYCL] Pass bound arch to unbundler (#4112)
This commit propagates the bound arch to the clang unbundler for SYCL actions. Co-authored-by: Michel Migdal <[email protected]> Signed-off-by: Steffen Larsen <[email protected]>
1 parent 93729af commit 351af24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4151,8 +4151,10 @@ class OffloadingActionBuilder final {
41514151
}
41524152
for (unsigned I = 0; I < ToolChains.size(); ++I) {
41534153
SYCLDeviceActions.push_back(UA);
4154-
UA->registerDependentActionInfo(
4155-
ToolChains[I], /*BoundArch=*/StringRef(), Action::OFK_SYCL);
4154+
withBoundArchForToolChain(ToolChains[I], [&](const char *BoundArch) {
4155+
UA->registerDependentActionInfo(ToolChains[I], BoundArch,
4156+
Action::OFK_SYCL);
4157+
});
41564158
}
41574159
return ABRT_Success;
41584160
}

0 commit comments

Comments
 (0)