Nikhil Marathe | f8a94b9 | 2020-06-29 01:43:00 -0700 | [diff] [blame] | 1 | common --enable_platform_specific_config |
Xdng Yng | 24fcc3e | 2024-08-29 00:45:43 -0700 | [diff] [blame] | 2 | common --incompatible_use_plus_in_repo_names |
Xdng Yng | c46b9ce | 2024-10-01 14:21:54 -0700 | [diff] [blame] | 3 | common --experimental_google_legacy_api # needed by protobuf |
Nikhil Marathe | f8a94b9 | 2020-06-29 01:43:00 -0700 | [diff] [blame] | 4 | |
Googler | 8ce1661 | 2024-11-05 02:58:48 -0800 | [diff] [blame] | 5 | # For @rules_java doc generation only, can be dropped after Bazel 8 |
Googler | 678b01a | 2024-10-05 23:16:32 -0700 | [diff] [blame] | 6 | common --experimental_rule_extension_api |
| 7 | |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 8 | # Shared configuration flags to build and test Bazel on RBE. |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 9 | build:remote_shared --remote_instance_name=projects/bazel-untrusted/instances/default_instance |
| 10 | build:remote_shared --remote_executor=grpcs://remotebuildexecution.googleapis.com |
Tiago Quelhas | 24470be | 2023-03-14 02:44:21 -0700 | [diff] [blame] | 11 | build:remote_shared --remote_download_toplevel |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 12 | build:remote_shared --remote_timeout=600 |
| 13 | build:remote_shared --google_default_credentials |
| 14 | build:remote_shared --jobs=100 |
| 15 | build:remote_shared --action_env=PATH=/bin:/usr/bin:/usr/local/bin |
Ivo List | bba4b34 | 2021-01-19 08:31:40 -0800 | [diff] [blame] | 16 | build:remote_shared --java_runtime_version=rbe_jdk |
| 17 | build:remote_shared --tool_java_runtime_version=rbe_jdk |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 18 | |
| 19 | # Configuration to build and test Bazel on RBE on Ubuntu 18.04 with Java 11 |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 20 | build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//java:all |
| 21 | build:ubuntu2004 --crosstool_top=@rbe_ubuntu2004//cc:toolchain |
| 22 | build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//config:cc-toolchain |
| 23 | build:ubuntu2004 --extra_execution_platforms=//:rbe_ubuntu2004_platform,//:rbe_ubuntu2004_highcpu_platform |
| 24 | build:ubuntu2004 --host_platform=//:rbe_ubuntu2004_platform |
| 25 | build:ubuntu2004 --platforms=//:rbe_ubuntu2004_platform |
| 26 | build:ubuntu2004 --config=remote_shared |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 27 | |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 28 | # Alias |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 29 | build:remote --config=ubuntu2004 |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 30 | |
Gowroji Sunil | 417c6b8 | 2024-06-04 09:23:45 -0700 | [diff] [blame] | 31 | build:macos --macos_minimum_os=10.13 |
Nikhil Marathe | f8a94b9 | 2020-06-29 01:43:00 -0700 | [diff] [blame] | 32 | |
Googler | 138f06f | 2023-08-10 01:53:06 -0700 | [diff] [blame] | 33 | build:windows_arm64 --platforms=//:windows_arm64 |
| 34 | build:windows_arm64 --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows |
| 35 | |
Googler | 15d4a05 | 2023-12-12 09:47:46 -0800 | [diff] [blame] | 36 | # Check direct Bazel module dependencies are up-to-date |
| 37 | common --check_direct_dependencies=error |
| 38 | |
| 39 | # Add mirrors for certain download URLs |
| 40 | common --experimental_downloader_config=bazel_downloader.cfg |
Yun Peng | 89ea68b | 2021-11-23 11:24:51 -0800 | [diff] [blame] | 41 | |
Googler | 48c8d9c | 2024-10-04 12:19:51 -0700 | [diff] [blame] | 42 | common --noenable_workspace |
Googler | 6591e70 | 2024-08-27 05:53:49 -0700 | [diff] [blame] | 43 | |
Tiago Quelhas | ba38aa2 | 2023-11-13 07:16:07 -0800 | [diff] [blame] | 44 | # Enable modern C++ features |
| 45 | build:linux --cxxopt=-std=c++17 |
| 46 | build:linux --host_cxxopt=-std=c++17 |
| 47 | build:macos --cxxopt=-std=c++17 |
| 48 | build:macos --host_cxxopt=-std=c++17 |
| 49 | build:windows --cxxopt=/std:c++17 |
| 50 | build:windows --host_cxxopt=/std:c++17 |
| 51 | |
Googler | 8de2fb2 | 2024-11-08 09:24:09 -0800 | [diff] [blame] | 52 | # Suppress warnings from external repos, we have no direct control on them anyway. |
| 53 | build:linux --per_file_copt=external/.*@-w |
| 54 | build:linux --host_per_file_copt=external/.*@-w |
| 55 | build:macos --per_file_copt=external/.*@-w |
| 56 | build:macos --host_per_file_copt=external/.*@-w |
| 57 | build:windows --per_file_copt=external/.*@/w |
| 58 | build:windows --host_per_file_copt=external/.*@/w |
| 59 | |
Googler | 707d065 | 2024-03-11 04:15:38 -0700 | [diff] [blame] | 60 | # Enable Java 21 language features |
| 61 | build --java_runtime_version=21 |
| 62 | build --java_language_version=21 |
| 63 | build --tool_java_language_version=21 |
| 64 | build --tool_java_runtime_version=21 |
cushon | 0c65082 | 2022-01-18 08:26:40 -0800 | [diff] [blame] | 65 | |
Xavier Bonaventura | 0bc3331 | 2023-01-12 23:27:06 -0800 | [diff] [blame] | 66 | # Fail if a glob doesn't match anything (https://github.com/bazelbuild/bazel/issues/8195) |
salma-samy | 89222e2 | 2024-02-12 08:30:37 -0800 | [diff] [blame] | 67 | common --incompatible_disallow_empty_glob |
Xavier Bonaventura | 0bc3331 | 2023-01-12 23:27:06 -0800 | [diff] [blame] | 68 | |
John Millikin | 8e8e43e | 2019-10-31 07:39:40 -0700 | [diff] [blame] | 69 | # User-specific .bazelrc |
Emil Kattainen | 5ade86d | 2022-08-30 07:51:18 -0700 | [diff] [blame] | 70 | try-import %workspace%/user.bazelrc |
fweikert | 69895ba | 2022-07-13 04:56:04 -0700 | [diff] [blame] | 71 | |
| 72 | build:docs --workspace_status_command=scripts/docs/get_workspace_status.sh |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 73 | |
| 74 | # Flags for CI builds |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 75 | ## Common |
| 76 | common:ci-common --lockfile_mode=error |
| 77 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 78 | ## For Linux |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 79 | common:ci-linux --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 80 | build:ci-linux --repository_cache=/var/lib/buildkite-agent/bazeltest/repo_cache |
| 81 | test:ci-linux --test_env=TEST_INSTALL_BASE=/var/lib/buildkite-agent/bazeltest/install_base |
| 82 | test:ci-linux --test_env=REPOSITORY_CACHE=/var/lib/buildkite-agent/bazeltest/repo_cache |
| 83 | test:ci-linux --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80 |
| 84 | test:ci-linux --sandbox_writable_path=/var/lib/buildkite-agent/bazeltest |
| 85 | test:ci-linux --sandbox_default_allow_network=false |
| 86 | |
| 87 | ## For macOS |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 88 | common:ci-macos --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 89 | build:ci-macos --repository_cache=/Users/buildkite/bazeltest/repo_cache |
Googler | 2fb8564 | 2024-05-31 04:41:52 -0700 | [diff] [blame] | 90 | build:ci-macos --experimental_collect_system_network_usage |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 91 | test:ci-macos --test_env=TEST_INSTALL_BASE=/Users/buildkite/bazeltest/install_base |
| 92 | test:ci-macos --test_env=REPOSITORY_CACHE=/Users/buildkite/bazeltest/repo_cache |
| 93 | test:ci-macos --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80 |
| 94 | test:ci-macos --sandbox_writable_path=/Users/buildkite/bazeltest |
Googler | 355b000 | 2024-09-24 06:02:19 -0700 | [diff] [blame] | 95 | # TODO(pcloudy): Revert to false once https://github.com/bazelbuild/bazel/issues/23726 is resolved. |
| 96 | test:ci-macos --sandbox_default_allow_network=true |
Yun Peng | e46f3d1 | 2024-02-21 07:54:31 -0800 | [diff] [blame] | 97 | test:ci-macos --test_tag_filters=-no_macos |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 98 | |
| 99 | ## For Windows |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 100 | common:ci-windows --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 101 | build:ci-windows --repository_cache=C:/b/bazeltest_repo_cache |
| 102 | test:ci-windows --test_env=BAZEL_VC |
| 103 | test:ci-windows --test_env=JAVA_HOME |
| 104 | test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base |
| 105 | test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache |
| 106 | test:ci-windows --test_tag_filters=-no_windows,-slow |