mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 13:35:19 +00:00
Build adjustments
This commit is contained in:
parent
6c1d98083a
commit
20389946a6
15
.bazelrc
15
.bazelrc
@ -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
|
||||
|
||||
|
BIN
.bazelrc.swp
BIN
.bazelrc.swp
Binary file not shown.
1
.gitignore
vendored
1
.gitignore
vendored
@ -59,6 +59,7 @@ bazel-telegram-ios/*
|
||||
bazel-testlogs
|
||||
bazel-testlogs/*
|
||||
*/*.swp
|
||||
*.swp
|
||||
build-input/data
|
||||
build-input/data/*
|
||||
build-input/gen
|
||||
|
22
Makefile
22
Makefile
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -280,5 +280,6 @@ open class ASButtonNode: ASControlNode {
|
||||
self.highlightedBackgroundImageNode.frame = CGRect(origin: CGPoint(), size: size)
|
||||
}
|
||||
|
||||
func f2() {print("test5") }
|
||||
func f2() {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user