rules_cc/cc
Googler a2949e206e Fix toolchain argument ordering
BEGIN_PUBLIC

Fix argument ordering

Expected argument ordering should be:

1. Arguments listed in `args`.
2. Legacy/built-in features.
3. User-defined features.

Due to some implementation changes, user-defined arguments were being applied last, reducing the ability for features to properly toggle behaviors dynamically.

This also fixes an issue caught by this change where cc_sysroot was applying flags to actions that had no associated action config.

END_PUBLIC

PiperOrigin-RevId: 683677895
Change-Id: I60e25ca22ffefce717e4e5ce476db0a070ca1993
2024-10-08 10:34:59 -07:00
..
common Make `cc_helper.bzl` publicly `load()`-able for `@rules_java` 2024-09-10 06:54:08 -07:00
compiler Sync cc toolchain from Bazel's tools/cpp 2024-10-03 09:32:38 -07:00
private Fix empty glob in cc/private/BUILD 2024-10-04 22:54:53 +02:00
proto Create toolchain types for proto_library and lang_proto_library 2023-09-18 12:30:14 -07:00
runfiles The targets in the old package were either not publicly visible or testonly dependencies and had diverged heavily from @bazel_tools. 2023-01-10 02:00:52 -08:00
toolchains Fix toolchain argument ordering 2024-10-08 10:34:59 -07:00
BUILD Sync cc toolchain from Bazel's tools/cpp 2024-10-03 09:32:38 -07:00
action_names.bzl Sync cc toolchain from Bazel's tools/cpp 2024-10-03 09:32:38 -07:00
cc_binary.bzl No public description 2024-09-10 22:04:14 -07:00
cc_import.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
cc_library.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
cc_shared_library.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
cc_test.bzl No public description 2024-09-10 22:04:14 -07:00
cc_toolchain_config_lib.bzl Add documentation for rule-based bazel toolchain configuration 2024-02-12 18:22:13 -08:00
defs.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
extensions.bzl Sync cc toolchain from Bazel's tools/cpp 2024-10-03 09:32:38 -07:00
find_cc_toolchain.bzl No public description 2024-09-10 22:04:14 -07:00
objc_import.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
objc_library.bzl Restructure rules_cc 2024-06-16 22:40:48 -07:00
repositories.bzl Copybara Merge: https://github.com/bazelbuild/rules_cc/pull/165 2023-01-11 04:33:23 -08:00
system_library.bzl Merge pull request #79 from agluszak:system_library 2020-09-23 06:28:04 -07:00
toolchain_utils.bzl Fix buildifier warnings in @rules_cc 2019-10-24 07:01:25 -07:00