File tree Expand file tree Collapse file tree 6 files changed +18
-8
lines changed Expand file tree Collapse file tree 6 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ private extension Target {
58
58
let package = Package (
59
59
name: " SwiftCompilerSources " ,
60
60
platforms: [
61
+ // We need at least macOS 13 here to avoid hitting an availability error
62
+ // for CxxStdlib. It's only needed for the package though, the CMake build
63
+ // works fine with a lower deployment target.
61
64
. macOS( . v13) ,
62
65
] ,
63
66
products: [
Original file line number Diff line number Diff line change @@ -927,8 +927,9 @@ SWIFT_END_ASSUME_NONNULL
927
927
SWIFT_END_NULLABILITY_ANNOTATIONS
928
928
929
929
#ifndef PURE_BRIDGING_MODE
930
- // In _not_ PURE_BRIDGING_MODE, briding functions are inlined and therefore
931
- // included in the header file.
930
+ // In _not_ PURE_BRIDGING_MODE, bridging functions are inlined and therefore
931
+ // included in the header file. This is because they rely on C++ headers that
932
+ // we don't want to pull in when using "pure bridging mode".
932
933
#include " ASTBridgingImpl.h"
933
934
#endif
934
935
Original file line number Diff line number Diff line change 36
36
#include < string>
37
37
#endif
38
38
39
- // FIXME: We ought to be importing '<swift/briging >' instead.
39
+ // FIXME: We ought to be importing '<swift/bridging >' instead.
40
40
#if __has_attribute(swift_name)
41
41
#define SWIFT_NAME (NAME ) __attribute__((swift_name(NAME)))
42
42
#else
@@ -273,7 +273,7 @@ class BridgedSourceLoc {
273
273
};
274
274
275
275
SWIFT_NAME (" getter:BridgedSourceLoc.isValid(self:)" )
276
- BRIDGED_INLINE bool BridgedSourceLoc_isValid(BridgedSourceLoc str );
276
+ BRIDGED_INLINE bool BridgedSourceLoc_isValid(BridgedSourceLoc loc );
277
277
278
278
// ===----------------------------------------------------------------------===//
279
279
// MARK: SourceRange
@@ -359,7 +359,8 @@ SWIFT_END_NULLABILITY_ANNOTATIONS
359
359
360
360
#ifndef PURE_BRIDGING_MODE
361
361
// In _not_ PURE_BRIDGING_MODE, bridging functions are inlined and therefore
362
- // included in the header file.
362
+ // included in the header file. This is because they rely on C++ headers that
363
+ // we don't want to pull in when using "pure bridging mode".
363
364
#include " BasicBridgingImpl.h"
364
365
#endif
365
366
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ bool BridgedOwnedString_empty(BridgedOwnedString str) {
74
74
// MARK: BridgedSourceLoc
75
75
//===----------------------------------------------------------------------===//
76
76
77
- bool BridgedSourceLoc_isValid (BridgedSourceLoc str ) {
78
- return str .getOpaquePointerValue () != nullptr ;
77
+ bool BridgedSourceLoc_isValid (BridgedSourceLoc loc ) {
78
+ return loc .getOpaquePointerValue () != nullptr ;
79
79
}
80
80
81
81
BridgedSourceLoc BridgedSourceLoc ::advancedBy (size_t n ) const {
Original file line number Diff line number Diff line change @@ -992,7 +992,9 @@ void writeCharToStderr(int c);
992
992
SWIFT_END_NULLABILITY_ANNOTATIONS
993
993
994
994
#ifndef PURE_BRIDGING_MODE
995
- // In _not_ PURE_BRIDGING_MODE, briding functions are inlined and therefore inluded in the header file.
995
+ // In _not_ PURE_BRIDGING_MODE, bridging functions are inlined and therefore
996
+ // included in the header file. This is because they rely on C++ headers that
997
+ // we don't want to pull in when using "pure bridging mode".
996
998
#include " SILBridgingImpl.h"
997
999
#endif
998
1000
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ let swiftSetttings: [SwiftSetting] = [
37
37
let package = Package (
38
38
name: " swiftSwiftCompiler " ,
39
39
platforms: [
40
+ // We need at least macOS 13 here to avoid hitting an availability error
41
+ // for CxxStdlib. It's only needed for the package though, the CMake build
42
+ // works fine with a lower deployment target.
40
43
. macOS( . v13)
41
44
] ,
42
45
products: [
You can’t perform that action at this time.
0 commit comments