Skip to content

Commit 1029c2d

Browse files
krypt-lxKryptcgrindel
authored
fix: Added Obj-C support check in generated bundle header files (#999)
This commit adds check for presence of ObjC support in currently used compiler. If not, skips SWIFTPM_MODULE_BUNDLE macros altogether. fixes #998 Co-authored-by: Krypt <me@mail> Co-authored-by: Chuck Grindel <[email protected]>
1 parent 69daf5f commit 1029c2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

swiftpkg/internal/ObjcResourceBundleAccessor.h.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#ifdef __OBJC__
12
#import <Foundation/Foundation.h>
23

34
#if __cplusplus
@@ -11,3 +12,4 @@ NSBundle* {MODULE_NAME}_SWIFTPM_MODULE_BUNDLE(void);
1112
#if __cplusplus
1213
}
1314
#endif
15+
#endif

0 commit comments

Comments
 (0)