forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swift: update from 5.9.1 to trunk Oct 27 snapshot
- Loading branch information
1 parent
a0f620d
commit d24d049
Showing
18 changed files
with
231 additions
and
7,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/swift/swift-SwiftCompilerSources-Sources-Basic-Utils.swift.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/swift/SwiftCompilerSources/Sources/Basic/Utils.swift b/swift/SwiftCompilerSources/Sources/Basic/Utils.swift | ||
index e1cfefe823f..b6953dd44fc 100644 | ||
--- a/swift/SwiftCompilerSources/Sources/Basic/Utils.swift | ||
+++ b/swift/SwiftCompilerSources/Sources/Basic/Utils.swift | ||
@@ -54,8 +54,14 @@ public extension NoReflectionChildren { | ||
|
||
public var standardError = CFileStream(fp: stderr) | ||
|
||
+#if os(Android) || canImport(Musl) | ||
+ public typealias FILEPointer = OpaquePointer | ||
+#else | ||
+ public typealias FILEPointer = UnsafeMutablePointer<FILE> | ||
+#endif | ||
+ | ||
public struct CFileStream: TextOutputStream { | ||
- var fp: UnsafeMutablePointer<FILE> | ||
+ var fp: FILEPointer | ||
|
||
public func write(_ string: String) { | ||
fputs(string, fp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/swift/lib/AST/ASTDumper.cpp b/swift/lib/AST/ASTDumper.cpp | ||
index 0e42ac1250e..c9243a0da8d 100644 | ||
--- a/swift/lib/AST/ASTDumper.cpp | ||
+++ b/swift/lib/AST/ASTDumper.cpp | ||
@@ -442,7 +442,7 @@ static StringRef getDumpString(RequirementKind kind) { | ||
static unsigned getDumpString(unsigned value) { | ||
return value; | ||
} | ||
-static size_t getDumpString(size_t value) { | ||
+static unsigned long getDumpString(unsigned long value) { | ||
return value; | ||
} | ||
|
Oops, something went wrong.