mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +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 \
|
--features=swift.enable_batch_mode \
|
||||||
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
|
--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=\
|
BAZEL_OPT_FLAGS=\
|
||||||
--features=swift.opt_uses_wmo \
|
--features=swift.opt_uses_wmo \
|
||||||
--features=swift.opt_uses_osize \
|
--features=swift.opt_uses_osize \
|
||||||
--swiftcopt='-num-threads' --swiftcopt='16' \
|
--swiftcopt='-num-threads' --swiftcopt='0' \
|
||||||
--objc_enable_binary_stripping \
|
--objc_enable_binary_stripping \
|
||||||
-s \
|
|
||||||
|
|
||||||
|
|
||||||
build_arm64: check_env
|
build_arm64: check_env
|
||||||
|
@ -14,7 +14,6 @@ swift_library(
|
|||||||
"//submodules/Markdown:Markdown",
|
"//submodules/Markdown:Markdown",
|
||||||
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
"//submodules/AsyncDisplayKit:AsyncDisplayKit",
|
||||||
],
|
],
|
||||||
alwayslink = True,
|
|
||||||
visibility = [
|
visibility = [
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
],
|
],
|
||||||
|
@ -18,7 +18,6 @@ swift_library(
|
|||||||
"//submodules/NetworkLogging:NetworkLogging",
|
"//submodules/NetworkLogging:NetworkLogging",
|
||||||
"//submodules/Reachability:Reachability",
|
"//submodules/Reachability:Reachability",
|
||||||
],
|
],
|
||||||
alwayslink = True,
|
|
||||||
visibility = [
|
visibility = [
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user