)]}'
{
  "commit": "0a658930a9fe39f98206f32fac068c97ebd1f09f",
  "tree": "386a5f92dfb15c5ad98f4f158589f68581c4e92d",
  "parents": [
    "fdaaa6a7b0aaa304b3e119157fb41b26a69582de"
  ],
  "author": {
    "name": "Keith Smiley",
    "email": "keithbsmiley@gmail.com",
    "time": "Tue May 21 02:42:52 2024 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue May 21 02:44:07 2024 -0700"
  },
  "message": "Add layering_check support for macOS\n\nThere were 2 things with the previous implementation that needed to be improved here:\n\n1. Apple Clang has a bug where it doesn\u0027t pass module compiler flags to the underlying -cc1 invocation, so we have to manually pass them directly to that invocation with -Xclang\n2. The previous search script was too aggressive and slow for macOS. The macOS SDK has tons of files that aren\u0027t headers, and tons of symlinks pointing to other files within the SDK. This adds a fork in the script to run a version that works with Apple SDKs. The time difference on my machine is 41s-\u003e6s. 6s is still pretty long so if desired we can put this behavior behind an env var for users to opt in with.\n\nI\u0027ve added a hermetic version of this to the apple_support toolchain, but similar to the Linux setup here the modulemap file includes absolute paths.\n\nCloses #22259.\n\nPiperOrigin-RevId: 635735410\nChange-Id: Icb3f30dd7319f147b0db54b3b42d4dc9032dc1a0\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4ccf75df384499bd93cf3be8f798e7fa4dfeef3e",
      "old_mode": 33261,
      "old_path": "src/test/shell/bazel/bazel_layering_check_test.sh",
      "new_id": "720a698ae30949b8f1951e4902761501321156f8",
      "new_mode": 33261,
      "new_path": "src/test/shell/bazel/bazel_layering_check_test.sh"
    },
    {
      "type": "modify",
      "old_id": "abbaec2e8823283e6cff080b96abb6b3d3af31c9",
      "old_mode": 33261,
      "old_path": "tools/cpp/generate_system_module_map.sh",
      "new_id": "deb52c2f6b65481fab86608d527961ad954a8229",
      "new_mode": 33261,
      "new_path": "tools/cpp/generate_system_module_map.sh"
    },
    {
      "type": "modify",
      "old_id": "3f162bdeb125513469dac3e4c32191887970e511",
      "old_mode": 33188,
      "old_path": "tools/cpp/unix_cc_configure.bzl",
      "new_id": "ef8b8b49fb6fc8477e2ef3dbaf79d32dce6dc046",
      "new_mode": 33188,
      "new_path": "tools/cpp/unix_cc_configure.bzl"
    },
    {
      "type": "modify",
      "old_id": "a361e7b02e2ef6a8557a2be996348ed23a3067c2",
      "old_mode": 33188,
      "old_path": "tools/cpp/unix_cc_toolchain_config.bzl",
      "new_id": "5a0cd710575076caba50de2f59cc28a8e4868057",
      "new_mode": 33188,
      "new_path": "tools/cpp/unix_cc_toolchain_config.bzl"
    }
  ]
}
