Skip to content

Commit e54758b

Browse files
committed
Implement for vanilla SwiftPM builds
1 parent 2427759 commit e54758b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Build/BuildDescription/ClangModuleBuildDescription.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,12 @@ public final class ClangModuleBuildDescription {
455455
break
456456
}
457457

458+
if bundlePath != nil {
459+
compilationConditions += ["-DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE=1"]
460+
} else {
461+
compilationConditions += ["-DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE=1"]
462+
}
463+
458464
return compilationConditions
459465
}
460466

0 commit comments

Comments
 (0)