Skip to content

Commit 3707aa4

Browse files
committed
[SYCL] optimize CheckObjectFileContainsExcludedTargets for general case
1 parent c3e9c7f commit 3707aa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/OffloadBundler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,9 @@ class ArchiveFileHandler final : public FileHandler {
12901290
// is in Excluded list.
12911291
Expected<bool>
12921292
CheckObjectFileContainsExcludedTargets(const Archive::Child &C) {
1293+
if (BundlerConfig.ExcludedTargetNames.empty())
1294+
return false;
1295+
12931296
auto TargetNamesOrErr = ReadTargetsFromChildren(C);
12941297
if (!TargetNamesOrErr)
12951298
return TargetNamesOrErr.takeError();

0 commit comments

Comments
 (0)