-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy path.bazelrc
More file actions
67 lines (49 loc) · 2.7 KB
/
Copy path.bazelrc
File metadata and controls
67 lines (49 loc) · 2.7 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
common --check_direct_dependencies=off
# https://github.com/bazelbuild/stardoc/issues/112
common --incompatible_allow_tags_propagation
# Don't require a system python to run py_binary targets
common --@rules_python//python/config_settings:bootstrap_impl=script
common --incompatible_default_to_explicit_init_py
common --flag_alias=swiftcopt=//swift:copt
common --flag_alias=host_swiftcopt=//swift:exec_copt
build --host_macos_minimum_os=14.0
build --macos_minimum_os=14.0
# We don't need to bump some of our dependencies, just becuse our dev
# dependencies cause us to use a newer version
build --check_direct_dependencies=off
# Make sure no warnings slip into the C++ tools we vendor
build --features treat_warnings_as_errors
# The default strategy is worker, which has sandboxing disabled by default,
# which can hide issues with non-hermetic bugs.
build --worker_sandboxing
build --enable_platform_specific_config
common:macos --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common:linux --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common --repo_env=ACCEPTED_ANDROID_NDK_LICENSE_VERSION=r27c
common --repo_env=ACCEPTED_ANDROID_SDK_LICENSE_VERSION=35
common --android_platforms=@rules_android//:arm64-v8a
common --java_language_version=17
common --java_runtime_version=remotejdk_17
common --tool_java_language_version=17
common --tool_java_runtime_version=remotejdk_17
common:linux --repo_env=CC=clang
build:linux --cxxopt='-std=c++17' --host_cxxopt='-std=c++17'
common:linux --//test:apple_build_tests=False
# Worker sandboxing copies the worker into a sandbox exec root and cleans it
# between invocations. On Windows a running/recently-run executable cannot be
# deleted, so that cleanup fails with "Permission denied". Run Swift workers
# unsandboxed on Windows.
build:windows --noworker_sandboxing
# This C2K warning causes zlib to fail to compile.
# There is an open issue about it on the zlib repository here:
# https://github.com/madler/zlib/issues/633
build --per_file_copt="external/.*zlib.*/.*.c@-Wno-deprecated-non-prototype"
# TODO: Remove once fixed
build --per_file_copt="external/.*protobuf.*/.*@-Wno-unused-private-field"
build --host_per_file_copt="external/.*protobuf.*/.*@-Wno-unused-private-field"
# ignore warnings in external CC dependencies
build --features=external_include_paths --host_features=external_include_paths
# MSVC ignores `/external:I` flag (given by "--features=external_include_paths") if also doesn't get the `/external:W<level>` flag which is
# unfortunately not added by bazel by default. Adding it with `--copt` doesn't work, so we'll simply disable this feature on windows.
build:windows --features=-external_include_paths --host_features=-external_include_paths
try-import %workspace%/user.bazelrc