)]}'
{
  "commit": "583556e932a5ef4bf22d5e32c6a42cbfdde07307",
  "tree": "869c578eb80c729688b0b8ed8042ca7173e691ed",
  "parents": [
    "61d073d6713cf5ebf1666baf2c79fbeeb5e0831e"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Sat Sep 26 02:05:06 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sat Sep 26 02:07:02 2026 -0700"
  },
  "message": "PR #2172: Treat clang targeting Windows as a MinGW compiler\n\nImported from GitHub PR https://github.com/abseil/abseil-cpp/pull/2172\n\nClang targeting `*-w64-windows-gnu`, e.g. via the hermetic LLVM toolchains from the `llvm` Bazel module, reports `@bazel_tools//tools/cpp:compiler` as `clang` rather than `mingw-gcc`. The `//absl:mingw_compiler` condition therefore doesn\u0027t match and the `-l\u003clib\u003e` flags for system libraries are missing, since only the `-DEFAULTLIB:\u003clib\u003e.lib` variants (which the GCC-style driver silently ignores) are passed:\n\n```\nld.lld: error: undefined symbol: BCryptGenRandom\n\u003e\u003e\u003e referenced by external/abseil-cpp+/absl/random/internal/_objs/seed_material/seed_material.pic.o\n```\n\nThis adds a `mingw-clang_compiler` setting that matches `clang` on Windows and includes it in `mingw_compiler`. `clang-cl` is unaffected since it reports itself as `clang-cl`.\n\nFound while cross-compiling Bazel itself to Windows.\n\nMerge 573fe91cb0aa18e79870347b1feb1176e33cf444 into ac102851b3f2a8c8275a0afb764082a0d5b09fa1\n\nMerging this change closes #2172\n\nPiperOrigin-RevId: 988758643\nChange-Id: Icf3e79e7ed3d17f6bd0f9fbbedc51620b07bed7c\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "980563a9f1229f605b19216a0196a60478e16520",
      "old_mode": 33188,
      "old_path": "absl/BUILD.bazel",
      "new_id": "c358647c298e7cb79cc8d2ff4c78f3346ce633dd",
      "new_mode": 33188,
      "new_path": "absl/BUILD.bazel"
    }
  ]
}
