mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix build
This commit is contained in:
@@ -100,13 +100,14 @@ class BazelCommandLine:
|
||||
|
||||
# https://github.com/bazelbuild/rules_swift
|
||||
# Use -Osize instead of -O when building swift modules.
|
||||
#'--features=swift.opt_uses_osize',
|
||||
'--features=swift.opt_uses_osize',
|
||||
|
||||
# --num-threads 0 forces swiftc to generate one object file per module; it:
|
||||
# 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=-num-threads', '--swiftcopt=1',
|
||||
'--swiftcopt=-j1',
|
||||
'--features=swift._num_threads_0_in_swiftcopts',
|
||||
|
||||
# Strip unsused code.
|
||||
'--features=dead_strip',
|
||||
|
||||
Reference in New Issue
Block a user