Try more changes

This commit is contained in:
Isaac 2024-10-16 19:25:28 +04:00
parent eb2b7c83a3
commit 6c156aa001
2 changed files with 3 additions and 4 deletions

View File

@ -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',

View File

@ -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))
}
}