diff --git a/README.md b/README.md index c4ea0bc..ea6e547 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # C++ rules for Bazel -* Postsubmit [![Build status](https://badge.buildkite.com/f03592ae2d7d25a2abc2a2ba776e704823fa17fd3e061f5103.svg?branch=master)](https://buildkite.com/bazel/rules-cc) +* Postsubmit [![Build status](https://badge.buildkite.com/f03592ae2d7d25a2abc2a2ba776e704823fa17fd3e061f5103.svg?branch=main)](https://buildkite.com/bazel/rules-cc) * Postsubmit + Current Bazel Incompatible flags [![Build status](https://badge.buildkite.com/5ba709cc33e5855078a1f8570adcf8e0a78ea93591bc0b4e81.svg?branch=master)](https://buildkite.com/bazel/rules-cc-plus-bazelisk-migrate) This repository contains Starlark implementation of C++ rules in Bazel. @@ -8,7 +8,7 @@ This repository contains Starlark implementation of C++ rules in Bazel. The rules are being incrementally converted from their native implementations in the [Bazel source tree](https://source.bazel.build/bazel/+/master:src/main/java/com/google/devtools/build/lib/rules/cpp/). For the list of C++ rules, see the Bazel -[documentation](https://docs.bazel.build/versions/master/be/overview.html). +[documentation](https://docs.bazel.build/versions/main/be/overview.html). # Getting Started @@ -71,7 +71,7 @@ bazel run @rules_cc//tools/migration:legacy_fields_migrator -- \ Bazel and `rules_cc` are the work of many contributors. We appreciate your help! -To contribute, please read the contribution guidelines: [CONTRIBUTING.md](https://github.com/bazelbuild/rules_cc/blob/master/CONTRIBUTING.md). +To contribute, please read the contribution guidelines: [CONTRIBUTING.md](https://github.com/bazelbuild/rules_cc/blob/main/CONTRIBUTING.md). Note that the `rules_cc` use the GitHub issue tracker for bug reports and feature requests only. For asking questions see: diff --git a/cc/defs.bzl b/cc/defs.bzl index ace104c..e49c32b 100644 --- a/cc/defs.bzl +++ b/cc/defs.bzl @@ -29,7 +29,7 @@ def _add_tags(attrs): def cc_binary(**attrs): """Bazel cc_binary rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_binary Args: **attrs: Rule attributes @@ -41,7 +41,7 @@ def cc_binary(**attrs): def cc_test(**attrs): """Bazel cc_test rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_test + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_test Args: **attrs: Rule attributes @@ -53,7 +53,7 @@ def cc_test(**attrs): def cc_library(**attrs): """Bazel cc_library rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_library Args: **attrs: Rule attributes @@ -65,7 +65,7 @@ def cc_library(**attrs): def cc_import(**attrs): """Bazel cc_import rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_import + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_import Args: **attrs: Rule attributes @@ -77,7 +77,7 @@ def cc_import(**attrs): def cc_proto_library(**attrs): """Bazel cc_proto_library rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_proto_library + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_proto_library Args: **attrs: Rule attributes @@ -89,7 +89,7 @@ def cc_proto_library(**attrs): def fdo_prefetch_hints(**attrs): """Bazel fdo_prefetch_hints rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#fdo_prefetch_hints + https://docs.bazel.build/versions/main/be/c-cpp.html#fdo_prefetch_hints Args: **attrs: Rule attributes @@ -101,7 +101,7 @@ def fdo_prefetch_hints(**attrs): def fdo_profile(**attrs): """Bazel fdo_profile rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#fdo_profile + https://docs.bazel.build/versions/main/be/c-cpp.html#fdo_profile Args: **attrs: Rule attributes @@ -113,7 +113,7 @@ def fdo_profile(**attrs): def cc_toolchain(**attrs): """Bazel cc_toolchain rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_toolchain + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_toolchain Args: **attrs: Rule attributes @@ -125,7 +125,7 @@ def cc_toolchain(**attrs): def cc_toolchain_suite(**attrs): """Bazel cc_toolchain_suite rule. - https://docs.bazel.build/versions/master/be/c-cpp.html#cc_toolchain_suite + https://docs.bazel.build/versions/main/be/c-cpp.html#cc_toolchain_suite Args: **attrs: Rule attributes @@ -137,7 +137,7 @@ def cc_toolchain_suite(**attrs): def objc_library(**attrs): """Bazel objc_library rule. - https://docs.bazel.build/versions/master/be/objective-c.html#objc_library + https://docs.bazel.build/versions/main/be/objective-c.html#objc_library Args: **attrs: Rule attributes @@ -149,7 +149,7 @@ def objc_library(**attrs): def objc_import(**attrs): """Bazel objc_import rule. - https://docs.bazel.build/versions/master/be/objective-c.html#objc_import + https://docs.bazel.build/versions/main/be/objective-c.html#objc_import Args: **attrs: Rule attributes diff --git a/cc/private/toolchain/clang_installation_error.bat.tpl b/cc/private/toolchain/clang_installation_error.bat.tpl index bec44eb..e3a61a4 100644 --- a/cc/private/toolchain/clang_installation_error.bat.tpl +++ b/cc/private/toolchain/clang_installation_error.bat.tpl @@ -18,7 +18,7 @@ echo. 1>&2 echo The target you are compiling requires the Clang compiler. 1>&2 echo Bazel couldn't find a valid Clang installation on your machine. 1>&2 %{clang_error_message} -echo Please check your installation following https://docs.bazel.build/versions/master/windows.html#using 1>&2 +echo Please check your installation following https://docs.bazel.build/versions/main/windows.html#using 1>&2 echo. 1>&2 exit /b 1 diff --git a/cc/private/toolchain/vc_installation_error.bat.tpl b/cc/private/toolchain/vc_installation_error.bat.tpl index b796585..9cdd658 100644 --- a/cc/private/toolchain/vc_installation_error.bat.tpl +++ b/cc/private/toolchain/vc_installation_error.bat.tpl @@ -18,7 +18,7 @@ echo. 1>&2 echo The target you are compiling requires Visual C++ build tools. 1>&2 echo Bazel couldn't find a valid Visual C++ build tools installation on your machine. 1>&2 %{vc_error_message} -echo Please check your installation following https://docs.bazel.build/versions/master/windows.html#using 1>&2 +echo Please check your installation following https://docs.bazel.build/versions/main/windows.html#using 1>&2 echo. 1>&2 exit /b 1 diff --git a/examples/custom_toolchain/toolchain_config.bzl b/examples/custom_toolchain/toolchain_config.bzl index 7e0a244..e83162b 100644 --- a/examples/custom_toolchain/toolchain_config.bzl +++ b/examples/custom_toolchain/toolchain_config.bzl @@ -7,8 +7,8 @@ structured. This is a proof-of-concept simple implementation. It doesn't construct fancy command lines and uses mock shell scripts to compile and link ("sample_compiler" and "sample_linker"). See -https://docs.bazel.build/versions/master/cc-toolchain-config-reference.html and -https://docs.bazel.build/versions/master/tutorial/cc-toolchain-config.html for +https://docs.bazel.build/versions/main/cc-toolchain-config-reference.html and +https://docs.bazel.build/versions/main/tutorial/cc-toolchain-config.html for advanced usage. """ @@ -51,7 +51,7 @@ def _impl(ctx): ] # Documented at - # https://docs.bazel.build/versions/master/skylark/lib/cc_common.html#create_cc_toolchain_config_info. + # https://docs.bazel.build/versions/main/skylark/lib/cc_common.html#create_cc_toolchain_config_info. # # create_cc_toolchain_config_info is the public interface for registering # C++ toolchain behavior.