mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Try more changes
This commit is contained in:
parent
eb2b7c83a3
commit
6c156aa001
@ -106,8 +106,7 @@ class BazelCommandLine:
|
||||
# 1. resolves issues with the linker caused by the swift-objc mixing.
|
||||
# 2. makes the resulting binaries significantly smaller (up to 9% for this project).
|
||||
#'--swiftcopt=-num-threads', '--swiftcopt=1',
|
||||
'--swiftcopt=-j1',
|
||||
'--features=swift._num_threads_0_in_swiftcopts',
|
||||
'--swiftcopt=-num-threads', '--swiftcopt=1',
|
||||
|
||||
# Strip unsused code.
|
||||
'--features=dead_strip',
|
||||
|
@ -119,7 +119,7 @@ extension _AdaptedPostboxEncoder.UnkeyedContainer: UnkeyedEncodingContainer {
|
||||
} else if value is String {
|
||||
try self.encode(value as! String)
|
||||
} else if value is Data {
|
||||
try self.encode(value as! Data)
|
||||
try self.encodeData(value as! Data)
|
||||
} else if let value = value as? AdaptedPostboxEncoder.RawObjectData {
|
||||
let buffer = WriteBuffer()
|
||||
|
||||
@ -174,7 +174,7 @@ extension _AdaptedPostboxEncoder.UnkeyedContainer: UnkeyedEncodingContainer {
|
||||
}
|
||||
|
||||
private extension _AdaptedPostboxEncoder.UnkeyedContainer {
|
||||
func encode(_ value: Data) throws {
|
||||
func encodeData(_ value: Data) throws {
|
||||
self.items.append(.data(value))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user