mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-08 19:10:53 +00:00
[WIP] Bazel transition
This commit is contained in:
parent
cd96e69361
commit
242ed43e04
6
Makefile
6
Makefile
@ -59,12 +59,14 @@ BAZEL_DEBUG_FLAGS=\
|
||||
--features=swift.enable_batch_mode \
|
||||
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
|
||||
|
||||
# --num-threads 0 forces swiftc to generate one object file per module; it:
|
||||
# 1. resolves issues with the linker caused by swift-objc mixing.
|
||||
# 2. makes the resulting binaries significantly smaller (up to 9% for this project).
|
||||
BAZEL_OPT_FLAGS=\
|
||||
--features=swift.opt_uses_wmo \
|
||||
--features=swift.opt_uses_osize \
|
||||
--swiftcopt='-num-threads' --swiftcopt='16' \
|
||||
--swiftcopt='-num-threads' --swiftcopt='0' \
|
||||
--objc_enable_binary_stripping \
|
||||
-s \
|
||||
|
||||
|
||||
build_arm64: check_env
|
||||
|
@ -14,7 +14,6 @@ swift_library(
|
||||
"//submodules/Markdown:Markdown",
|
||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||
],
|
||||
alwayslink = True,
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
|
@ -18,7 +18,6 @@ swift_library(
|
||||
"//submodules/NetworkLogging:NetworkLogging",
|
||||
"//submodules/Reachability:Reachability",
|
||||
],
|
||||
alwayslink = True,
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user