mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Use -Osize
This commit is contained in:
parent
01e0ce2a8d
commit
de7ca018f6
3
Makefile
3
Makefile
@ -60,7 +60,8 @@ BAZEL_DEBUG_FLAGS=\
|
|||||||
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
|
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
|
||||||
|
|
||||||
BAZEL_OPT_FLAGS=\
|
BAZEL_OPT_FLAGS=\
|
||||||
--swiftcopt=-whole-module-optimization \
|
--features=swift.opt_uses_wmo \
|
||||||
|
--features=swift.opt_uses_osize \
|
||||||
--swiftcopt='-num-threads' --swiftcopt='16' \
|
--swiftcopt='-num-threads' --swiftcopt='16' \
|
||||||
--objc_enable_binary_stripping \
|
--objc_enable_binary_stripping \
|
||||||
-s \
|
-s \
|
||||||
|
@ -8,7 +8,7 @@ export BUCK_DEBUG_OPTIONS=\
|
|||||||
export BUCK_RELEASE_OPTIONS=\
|
export BUCK_RELEASE_OPTIONS=\
|
||||||
--config custom.other_cflags="-Os" \
|
--config custom.other_cflags="-Os" \
|
||||||
--config custom.other_cxxflags="-Os" \
|
--config custom.other_cxxflags="-Os" \
|
||||||
--config custom.optimization="-O" \
|
--config custom.optimization="-Osize" \
|
||||||
--config custom.config_swift_compiler_flags="-whole-module-optimization"
|
--config custom.config_swift_compiler_flags="-whole-module-optimization"
|
||||||
|
|
||||||
export BUCK_THREADS_OPTIONS=--config build.threads=$(shell sysctl -n hw.logicalcpu)
|
export BUCK_THREADS_OPTIONS=--config build.threads=$(shell sysctl -n hw.logicalcpu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user