)]}'
{
  "commit": "f5f29ef933eaaecac6ed9c71ee41129777901193",
  "tree": "1c225b7a7b3232be77bbbaeba6441c5e10088e6a",
  "parents": [
    "b11ab7e23bb070e52f9c73d81406526933161738"
  ],
  "author": {
    "name": "Jeffrey Wall",
    "email": "265409180+jeffwall-curlewlabs@users.noreply.github.com",
    "time": "Sun Nov 01 21:34:46 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 01 21:34:46 2026 +0000"
  },
  "message": "Declare the dSYM for iOS cdylib and bin targets (#4367)\n\nFixes #4366.\n\n`rustc_compile_action` declared the `.dSYM` for `cdylib` and `bin`\ncrates only when `target_os in [\"macos\", \"darwin\"]`. rustc writes it on\nevery Apple target, so on iOS it was dropped with the action\u0027s\nundeclared outputs and `dsym_folder` was missing.\n\nThis switches the check to `target_os.startswith((\"mac\", \"darwin\",\n\"ios\"))`, the same prefix check `rustc.bzl` already uses to pick the\nDarwin link flags. tvOS and visionOS also default to packed debuginfo;\n#4346 and #2621 add those to that check, and they\u0027d want to add them\nhere too.\n\n### Test\n\n`lib_dsym_ios_test` in `test/unit/debug_info` analyzes the existing\n`rust_shared_library` for an iOS platform with a mock toolchain,\nfollowing the pattern in `test/unit/dlltool`, so it runs on any host. It\nfails on `main` with no file in `dsym_folder` and passes with this\nchange. The existing macOS dSYM tests still pass.\n\nIt covers the library only. Under `bazel coverage\n--instrument_test_targets` the binary under test gets built, which a\nmock rustc can\u0027t do. Both crate types take the same branch.\n\nChecked on macOS arm64 with Bazel 9.3.1: `bazel test\n//test/unit/debug_info:all`, the same under `bazel coverage` with the\npresubmit coverage flags, and buildifier 8.5.1 from\n`//crate_universe/private/vendor:buildifier`.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "72d776f9b5a50c55bae53a26437618a7bf23ee28",
      "old_mode": 33188,
      "old_path": "rust/private/rustc.bzl",
      "new_id": "dfc224f6adb9e70b9938784476aca831830a6488",
      "new_mode": 33188,
      "new_path": "rust/private/rustc.bzl"
    },
    {
      "type": "modify",
      "old_id": "a79cbb129893ee3b5fe4903f3a5f074f389f7a00",
      "old_mode": 33188,
      "old_path": "test/unit/debug_info/debug_info_analysis_test.bzl",
      "new_id": "991f11acf9af9c2fcfa5b9c8918b089bb398ff65",
      "new_mode": 33188,
      "new_path": "test/unit/debug_info/debug_info_analysis_test.bzl"
    }
  ]
}
