forked from bazel-ios/rules_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
33 lines (25 loc) · 1.35 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
# Required for bazel 3.4+
# See https://github.com/bazelbuild/bazel/issues/10674#issuecomment-658270895
build --incompatible_objc_compile_info_migration
build --incompatible_objc_provider_remove_compile_info
# 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 index_while_building_v2 - see docs/index_while_building.md for a
# detailed summary
build --features swift.index_while_building_v2
# Prevents leaking unexpected binaries via PATH to tests
build --test_env=PATH=/usr/bin:/bin:/usr/sbin:/sbin