Build adjustments

This commit is contained in:
Ali 2020-02-26 20:12:03 +04:00
parent 6c1d98083a
commit 20389946a6
6 changed files with 27 additions and 21 deletions

View File

@ -4,19 +4,6 @@ build --cxxopt='-std=c++14'
build --copt='-w'
build --swiftcopt='-Xcc'
build --swiftcopt='-w'
build --features=swift.enable_batch_mode
build --features=swift.use_global_module_cache
build --features=swift.cacheable_swiftmodules
build --spawn_strategy=local
#build --swiftcopt=-wmo
#build --swiftcopt='-num-threads'
#build --swiftcopt='16'
build --swiftcopt=-j14
#build --jobs 16
#build --remote_executor=grpc://localhost:8980
#build --spawn_strategy=remote
#build --strategy=SwiftCompile=worker
#build --strategy=SwiftCompile=remote
build --strategy=SwiftCompile=local

Binary file not shown.

1
.gitignore vendored
View File

@ -59,6 +59,7 @@ bazel-telegram-ios/*
bazel-testlogs
bazel-testlogs/*
*/*.swp
*.swp
build-input/data
build-input/data/*
build-input/gen

View File

@ -3,6 +3,8 @@
include Utils.makefile
APP_VERSION="5.15.1"
CORE_COUNT=$(shell sysctl -n hw.logicalcpu)
CORE_COUNT_MINUS_ONE=$(shell expr ${CORE_COUNT} \- 1)
BUCK_OPTIONS=\
--config custom.appVersion="${APP_VERSION}" \
@ -44,10 +46,21 @@ BUCK_OPTIONS=\
BAZEL=$(shell which bazel)
ifneq ($(BAZEL_CACHE_DIR),)
export BAZEL_CACHE_OPTIONS=\
export BAZEL_CACHE_FLAGS=\
--disk_cache="${BAZEL_CACHE_DIR}"
endif
BAZEL_COMMON_FLAGS=\
--features=swift.use_global_module_cache \
BAZEL_DEBUG_FLAGS=\
--features=swift.enable_batch_mode \
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
BAZEL_OPT_FLAGS=\
--swiftcopt=-whole-module-optimization \
--swiftcopt='-num-threads' --swiftcopt='16' \
build_arm64: check_env
$(BUCK) build \
@ -408,18 +421,17 @@ temp_project: check_env kill_xcode
bazel_app_debug_arm64:
APP_VERSION="${APP_VERSION}" \
build-system/prepare-build.sh distribution
"${BAZEL}" build Telegram/Telegram \
"${BAZEL}" build Telegram/Telegram ${BAZEL_CACHE_FLAGS} ${BAZEL_COMMON_FLAGS} ${BAZEL_DEBUG_FLAGS} \
-c dbg \
--ios_multi_cpus=arm64 \
--watchos_cpus=armv7k,arm64_32 \
--verbose_failures \
-s
--verbose_failures
bazel_app_arm64:
APP_VERSION="${APP_VERSION}" \
BAZEL_CACHE_DIR="${BAZEL_CACHE_DIR}" \
build-system/prepare-build.sh distribution
"${BAZEL}" build Telegram/Telegram ${BAZEL_CACHE_OPTIONS} \
"${BAZEL}" build Telegram/Telegram ${BAZEL_CACHE_FLAGS} ${BAZEL_COMMON_FLAGS} ${BAZEL_OPT_FLAGS} \
-c opt \
--ios_multi_cpus=arm64 \
--watchos_cpus=armv7k,arm64_32 \

View File

@ -36,12 +36,17 @@ GEN_DIRECTORY="build-input/gen/project"
rm -rf "$GEN_DIRECTORY"
mkdir -p "$GEN_DIRECTORY"
CORE_COUNT=$(sysctl -n hw.logicalcpu)
CORE_COUNT_MINUS_ONE=$(expr ${CORE_COUNT} \- 1)
BAZEL_OPTIONS=(\
--features=swift.use_global_module_cache \
--spawn_strategy=standalone \
--strategy=SwiftCompile=standalone \
--features=swift.enable_batch_mode \
--swiftcopt=-j${CORE_COUNT_MINUS_ONE} \
)
set -x
if [ "$BAZEL_CACHE_DIR" != "" ]; then
BAZEL_OPTIONS=("${BAZEL_OPTIONS[@]}" --disk_cache="$(echo $BAZEL_CACHE_DIR | sed -e 's/[\/&]/\\&/g')")
fi

View File

@ -280,5 +280,6 @@ open class ASButtonNode: ASControlNode {
self.highlightedBackgroundImageNode.frame = CGRect(origin: CGPoint(), size: size)
}
func f2() {print("test5") }
func f2() {
}
}