This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
forked from bazel-ios/rules_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
48 lines (37 loc) · 2.27 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# We can't create a bzl_library for rules-swift because of its visibility,
# so circumvent by not using the sandbox
build --strategy=Stardoc=standalone
# Debugging does not work in sandbox mode. Uncomment these lines to turn off sandboxing.
# build --genrule_strategy=standalone
# build --spawn_strategy=standalone
build --verbose_failures # Print the full command line for commands that failed
build --test_output=errors # Prints log file output to the console on failure
# By default do not build the tests for sources-with-prebuilt-binaries,
# because it takes quite some time. They will only run on CI
build --deleted_packages tests/ios/frameworks/sources-with-prebuilt-binaries
# Enable dbg compilation mode in this repo, so we can test xcodeproj-built
# binaries contain debug symbol tables.
build --compilation_mode=dbg
# Use 'worker' strategy for swift compilation
build --strategy=SwiftCompile=worker
# This flips enable_global_index_store - see docs/index_while_building.md for a
# detailed summary
build --features swift.use_global_index_store
build --features swift.index_while_building
# Prevents leaking unexpected binaries via PATH to tests
build --test_env=PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Avoid running xcode-locator which can be super slow if the machine has many
# Xcode versions
build --xcode_version_config=//:host_xcodes
# A toolchain to build the arm64 sim under Bazel 4. The problem is
# that Bazel should have a new CPU but that needs much work in Bazel. The idea of
# this toolchain is to conditionally compile x86_64 simulator as arm64. This has
# edge cases and cavates of course. These features could theoretically be
# auto-configured on an ARM64 host but is a flag for the moment. Example usage:
# Setup this config to build x86_64 as arm64 builds with ( --ios_multi_cpus=x86_64 )
common:bazel4_arm64_simulator_arm64_host --features apple.arm64_simulator_use_device_deps
common:bazel4_arm64_simulator_arm64_host --features bazel4.override_host_cpu_arm64
common:bazel4_arm64_simulator_arm64_host --features bazel4.override_simulator_cpu_arm64
# Similar to above but doesn't override the host CPU
common:bazel4_arm64_simulator_x86_64_host --features apple.arm64_simulator_use_device_deps
common:bazel4_arm64_simulator_x86_64_host --features bazel4.override_simulator_cpu_arm64