Use -Osize

This commit is contained in:
Ali 2020-10-13 00:08:57 +04:00
parent 01e0ce2a8d
commit de7ca018f6
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,8 @@ BAZEL_DEBUG_FLAGS=\
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
BAZEL_OPT_FLAGS=\
--swiftcopt=-whole-module-optimization \
--features=swift.opt_uses_wmo \
--features=swift.opt_uses_osize \
--swiftcopt='-num-threads' --swiftcopt='16' \
--objc_enable_binary_stripping \
-s \

View File

@ -8,7 +8,7 @@ export BUCK_DEBUG_OPTIONS=\
export BUCK_RELEASE_OPTIONS=\
--config custom.other_cflags="-Os" \
--config custom.other_cxxflags="-Os" \
--config custom.optimization="-O" \
--config custom.optimization="-Osize" \
--config custom.config_swift_compiler_flags="-whole-module-optimization"
export BUCK_THREADS_OPTIONS=--config build.threads=$(shell sysctl -n hw.logicalcpu)