)]}'
{
  "commit": "ce6f9ffaa7e2882d0ebda143f8ac2c307782af8a",
  "tree": "f0d4e7c27deb97ceeae1baef55643d86431c2018",
  "parents": [
    "f4742f3165d096130c39a71feb26374da37620f2"
  ],
  "author": {
    "name": "Johannes Schindelin",
    "email": "johannes.schindelin@gmx.de",
    "time": "Sun Sep 13 15:57:11 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sun Sep 13 15:48:08 2026 -0700"
  },
  "message": "rust: pick a GCC-compatible Cargo target under MSYS2/MinGW\n\nWhen Git is built under MSYS2/MinGW with Rust support enabled, the\nMakefile expects `cargo build` to drop a `target/release/libgitcore.a`\nthat is linkable by the same MinGW GCC used for every other object. With\nRust installed via `rustup` (the way it ships on the GitHub-hosted\n`windows-2022` and `windows-11-arm` runners that build git/git and its\nforks), the default toolchain targets the MSVC ABI; cargo then writes\n`target/release/gitcore.lib` instead, which the MinGW `ld.exe` cannot\nconsume:\n\n    LINK git-shell.exe\n    D:\\git-sdk-64-minimal\\mingw64\\bin/ld.exe: cannot find target/release/libgitcore.a: No such file or directory\n    collect2.exe: error: ld returned 1 exit status\n\nSee https://github.com/microsoft/git/actions/runs/27341625000 for a\nfull example log.\n\nLet\u0027s define the correct target, using the `CARGO_BUILD_TARGET` variable\nthat will be picked up by Rust, see\nhttps://dirname.github.io/rust-std-doc/cargo/reference/environment-variables.html#:~:text\u003dCARGO%5FBUILD%5FTARGET\n\nRe-use (and fix) the existing `HOST_CPU` variable to determine the\ncorrect value. Avoid relying on environment variables that are simply\nnot defined in Git for Windows\u0027 minimal SDK that Git uses in its CI\nruns.\n\nAssisted-by: Claude Opus 4.7\nSigned-off-by: Johannes Schindelin \u003cjohannes.schindelin@gmx.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fac3e8879c83774aad69794f9de2b6af5a9a0327",
      "old_mode": 33188,
      "old_path": "Makefile",
      "new_id": "ad1ba26f91e9210e7e78986a220f77d01c76cc96",
      "new_mode": 33188,
      "new_path": "Makefile"
    },
    {
      "type": "modify",
      "old_id": "0b63be10b7782ee19a6c5bce1f05876d16225949",
      "old_mode": 33188,
      "old_path": "config.mak.uname",
      "new_id": "f3f3bcc4efbf3e3a76eafab5f439e9293f95f57b",
      "new_mode": 33188,
      "new_path": "config.mak.uname"
    }
  ]
}
