)]}'
{
  "commit": "d16594b2f314f3193a02435aefea90a919eb2344",
  "tree": "65a2df126691fb9fc4ee71d4cedcc4daaecded7c",
  "parents": [
    "2ec2e09cd3cc7d77945d09b852c2696cd671eb00"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Wed Oct 28 11:07:37 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Wed Oct 28 11:08:40 2026 -0700"
  },
  "message": "Use the DLL\u0027s file name in the DEF file generated by cc_shared_library (#950)\n\n`cc_shared_library` generates its DEF file (with `windows_export_all_symbols` or a toolchain-provided `generate_def_file` action) with a `LIBRARY` statement that is the target name. The linker records that name in the import library, so for a target `foo_shared` with `shared_lib_name \u003d \"foo1.dll\"`, dependents import `foo_shared.dll`, which doesn\u0027t exist at runtime. The same happens without `shared_lib_name` on toolchains whose DLL name pattern adds a prefix, e.g. `libfoo_shared.dll` on MinGW.\n\nThis passes the actual output file name instead, which is what `cc_binary(linkshared \u003d True)` already does.\n\nChecked with lld-link: a DEF file with `LIBRARY foo_shared` linked with `/out:foo1.dll` yields an import library whose members reference `foo_shared.dll`, while a DEF file with the matching name (or without `LIBRARY`) yields references to `foo1.dll`. With this change, the `DefParser` action for the example above receives `foo1.dll` instead of `foo_shared_named`.\n\nFound while looking into bazelbuild/bazel#31951.\n\nCloses #950\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/rules_cc/pull/950 from fmeum:csl-def-library-name 1a7076148051df4adeef28b674a0ce733c35dda7\nPiperOrigin-RevId: 1009039396\nChange-Id: I6405d69e0b6158b9f3f445c6eadeb878ef57110b\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5c8bce7a841267960c2113501fe9c3ca9426012b",
      "old_mode": 33188,
      "old_path": "cc/private/rules_impl/cc_shared_library_impl.bzl",
      "new_id": "58212ae28a44689037b1c868b8bcd6b805b990d1",
      "new_mode": 33188,
      "new_path": "cc/private/rules_impl/cc_shared_library_impl.bzl"
    }
  ]
}
