Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 10, 2025. It is now read-only.
/CombineXPublic archive

Commit299bc0f

Browse files
committed
fix swift 5.4 on linux
1 parent98096c6 commit299bc0f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
linux:
3737
strategy:
3838
matrix:
39-
swift_version:['5.2', '5.3']
39+
swift_version:['5.2', '5.3', '5.4']
4040
runs-on:ubuntu-latest
4141
container:
4242
image:swift:${{ matrix.swift_version }}

‎Sources/CombineX/Internal/Runtime.swift‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,29 @@ private struct AnyMetadata {
118118
privatestructAnyClassMetadata{
119119
var_kind:UInt // isaPointer for classes
120120
varsuperClass:Any.Type
121+
#if !swift(>=5.4) || canImport(ObjectiveC)
122+
// ABI change in Swift 5.4
123+
// https://github.com/wickwirew/Runtime/issues/92
121124
varcacheData:(Int,Int)
122125
varrodataPointer:Int
126+
#endif
123127

124128
varisSwiftClass:Bool{
129+
#if !swift(>=5.4) || canImport(ObjectiveC)
125130
return(rodataPointer& classIsSwiftMask)!=0
131+
#else
132+
returntrue
133+
#endif
126134
}
127135
}
128136

129137
privatestructClassMetadata{
130138
var_kind:UInt // isaPointer for classes
131139
varsuperClass:Any.Type
140+
#if !swift(>=5.4) || canImport(ObjectiveC)
132141
varcacheData:(Int,Int)
133142
varrodataPointer:Int
143+
#endif
134144
varclassFlags:Int32
135145
varinstanceAddressPoint:UInt32
136146
varinstanceSize:UInt32

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp