)]}'
{
  "commit": "cb13b255e6f3718e39f8d040ec4463a51e47b5cb",
  "tree": "f14bc8628eea4f0b1e9a109a56ab55a270bfec61",
  "parents": [
    "cad4670c839c80e87e8a669e3ab5eee2ac7339b7"
  ],
  "author": {
    "name": "Austin Schuh",
    "email": "austin.linux@gmail.com",
    "time": "Wed Oct 28 06:17:16 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Wed Oct 28 06:17:47 2026 -0700"
  },
  "message": "Add rule-based args for C++20 modules (#927)\n\n#750 added the C++20 module actions and variables to the rule-based toolchain API, but no args that use them, so every rule-based toolchain that builds modules writes its own. unix_cc_toolchain_config has them as features, and this brings rule-based toolchains up to parity.\n\nAdd //cc/toolchains/args/cpp_modules, with the cpp_modules feature Bazel requires before it builds module interfaces, and the clang args: the module map file, -x c++-module and -fmodule-output. Name the dependency scanner\u0027s output file in compiler_output_flags, where unix_cc_toolchain_config does. The args only apply to the module actions, so they join the legacy action config features; toolchains that map tools for those actions list cpp_modules as a known feature.\n\nTested with goldens in legacy_features_as_args, which match the features of the same names in unix_cc_toolchain_config. End to end, toolchains_llvm\u0027s rule-based darwin toolchain builds and runs C++20 module tests with these args.\n\nCloses #927\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/rules_cc/pull/927 from AustinSchuh:cpp20-module-feature f9fe5f6f32766bb40650e5cb31b410d04dc3cf70\nPiperOrigin-RevId: 1008856146\nChange-Id: I42710cf3bb520f384a9f17447b3542d80f0cbca8\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "440a79864fc3944f9a513dc8dfc9df1b15584dd6",
      "old_mode": 33188,
      "old_path": "cc/toolchains/args/BUILD",
      "new_id": "3edc7f41a4ac0361617573022cc6a9df99a68756",
      "new_mode": 33188,
      "new_path": "cc/toolchains/args/BUILD"
    },
    {
      "type": "modify",
      "old_id": "07235fe2138334da006fb85b6d80e112dc180a46",
      "old_mode": 33188,
      "old_path": "cc/toolchains/args/compiler_input_flags/BUILD",
      "new_id": "d4a39d0c1c4f7a66b56e72605142f65f50acbc3c",
      "new_mode": 33188,
      "new_path": "cc/toolchains/args/compiler_input_flags/BUILD"
    },
    {
      "type": "modify",
      "old_id": "b7350c402e4a0ced4528fdaa7a63d2d330852f32",
      "old_mode": 33188,
      "old_path": "cc/toolchains/args/compiler_output_flags/BUILD",
      "new_id": "d6bd17e905ea7d00b9761a274ccf39ada6a68625",
      "new_mode": 33188,
      "new_path": "cc/toolchains/args/compiler_output_flags/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6269e5fd9fb25aaeb83aa0075edf11c3ba6f660a",
      "new_mode": 33188,
      "new_path": "cc/toolchains/args/cpp_modules/BUILD"
    },
    {
      "type": "modify",
      "old_id": "e64f152af3ab8ed5da911cd284c4c9c1d0151d3f",
      "old_mode": 33188,
      "old_path": "tests/rule_based_toolchain/legacy_features_as_args/BUILD",
      "new_id": "05579263032dbd9cdb4f5901108f175a8161c496",
      "new_mode": 33188,
      "new_path": "tests/rule_based_toolchain/legacy_features_as_args/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8126866ce1412485834a69a2b09a597a6b2f06de",
      "new_mode": 33188,
      "new_path": "tests/rule_based_toolchain/legacy_features_as_args/goldens/unix/compiler_input_flags.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "377244e2a8f58b51642f2a8cfb4b24d29bfff487",
      "new_mode": 33188,
      "new_path": "tests/rule_based_toolchain/legacy_features_as_args/goldens/unix/compiler_output_flags.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3af6099f7dd6c0fde51a1b96ffae260c617992d4",
      "new_mode": 33188,
      "new_path": "tests/rule_based_toolchain/legacy_features_as_args/goldens/unix/cpp20_module_flags.bzl"
    }
  ]
}
