)]}'
{
  "commit": "9b9b7decbb1be6fee6af60a7d1972ae96108a326",
  "tree": "9f41c362913e73e3d61e10d6ba66945a0d968bfd",
  "parents": [
    "f96573d6e51487f8c313cd57bd498fe328a5a6ff"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Fri Oct 09 15:53:24 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Oct 09 15:54:00 2026 -0700"
  },
  "message": "Keep tool paths of generated files relative to the execution root (#901)\n\n`_compute_tool_paths` prefixes every relative tool path with the package of the `cc_toolchain`, which turns exec-cfg paths into non-existent ones. With apple_support 2.8.4, which Bazel@HEAD now bundles and thus selects by default on macOS, `$(CC)` expands to the nonsensical\n\n```\nexternal/apple_support++apple_cc_configure_extension+local_config_apple_cc/bazel-out/darwin_arm64-opt-exec-ST-\u003chash\u003e/bin/external/apple_support+/crosstool/wrapped_clang\n```\n\ninstead of\n\n```\nbazel-out/darwin_arm64-opt-exec-ST-\u003chash\u003e/bin/external/apple_support+/crosstool/wrapped_clang\n```\n\nThis PR keeps tool paths that start with the output directory as they are.\n\nCloses #901\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/rules_cc/pull/901 from fmeum:generated-tool-paths 103fab867e66d382e2461ef5ba91f547e33b64db\nPiperOrigin-RevId: 996808000\nChange-Id: Ice1f696166553d98f893dd6c430a769f3b9e691e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "77bb554f9333ce2d8a79183ee785691c7ad30503",
      "old_mode": 33188,
      "old_path": "cc/cc_toolchain_config_lib.bzl",
      "new_id": "798a19ff0069b0dcf189f4dee18cbd4150af6fac",
      "new_mode": 33188,
      "new_path": "cc/cc_toolchain_config_lib.bzl"
    },
    {
      "type": "modify",
      "old_id": "8d042e291c29c49d19acd62e27fad03a97207ed2",
      "old_mode": 33188,
      "old_path": "cc/private/rules_impl/cc_toolchain_provider_helper.bzl",
      "new_id": "6495fe21fc5a44e8d12f0363218ac5b54db59449",
      "new_mode": 33188,
      "new_path": "cc/private/rules_impl/cc_toolchain_provider_helper.bzl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e2eb86cc4df192c47219d7e6895aff813dac3fc6",
      "new_mode": 33188,
      "new_path": "tests/generated_tool_path/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "02b5784e535e512550151b37a608a3cc952bc2db",
      "new_mode": 33188,
      "new_path": "tests/generated_tool_path/generated_tool_path_test.bzl"
    }
  ]
}
