)]}'
{
  "commit": "08b6af6b773558aaca14f7c8b783eb6d1f3622d0",
  "tree": "c9ce868919aa01db76dc967d4f9efa5347e44ecc",
  "parents": [
    "caf235272a68fc72d1b49a3151ba474e299a2155"
  ],
  "author": {
    "name": "Florian Walbroel",
    "email": "florian.walbroel@rwth-aachen.de",
    "time": "Mon Dec 01 18:48:54 2025 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Dec 01 09:48:54 2025 -0800"
  },
  "message": "build_tools: fix: ensure that iree-flatcc-cli and iree-c-embed-data are build for the target during cross-compilation (#22755)\n\nWhen running a cross-compilation of the runtime I noticed that the\ninstall includes binaries from the host binary directory that I\nspecified, specifically: `iree-c-embed-data`. Looking at\n`third-party/iree/build_tools/embed_data/CMakeLists.txt:8` you can see\nthat the binary is only imported but never built for the cross-target.\n\nWhen trying to also cross-compile the python bindings the cmake setup\nwas failing with:\n```\nCMake Error at third-party/iree/runtime/bindings/python/CMakeLists.txt:334:EVAL:2 (install):\n  install TARGETS given target \"iree-c-embed-data\" which does not exist.\nCall Stack (most recent call first):\n  third-party/iree/CMakeLists.txt:DEFERRED\n```\n\nThis happens because the binary is not being build for the cross-target.\nThe same issue happens for the `iree-flatcc-cli` tool.\n\nThis PR ensures that the host binaries are correctly used during the\ncross-compilation, as well as ensuring that the binaries are built for\nthe target and included in the install.\n\nSigned-off-by: Florian Walbroel \u003cwalbroel@roofline.ai\u003e\nCo-authored-by: Florian Walbroel \u003cwalbroel@roofline.ai\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ff5d709a9b10afaf1b78d87172b121f0675284b8",
      "old_mode": 33188,
      "old_path": "build_tools/cmake/flatbuffer_c_library.cmake",
      "new_id": "85c6f4cd5f4f01bd2945bc03c7da043480602c2b",
      "new_mode": 33188,
      "new_path": "build_tools/cmake/flatbuffer_c_library.cmake"
    },
    {
      "type": "modify",
      "old_id": "75e732845a4685b1458f97dc6b81f216b5099e43",
      "old_mode": 33188,
      "old_path": "build_tools/cmake/iree_c_embed_data.cmake",
      "new_id": "538301899937995d3ba7a3e5969097796be25086",
      "new_mode": 33188,
      "new_path": "build_tools/cmake/iree_c_embed_data.cmake"
    },
    {
      "type": "modify",
      "old_id": "074a0653984220ca826110ea1bf669aa867172d9",
      "old_mode": 33188,
      "old_path": "build_tools/embed_data/CMakeLists.txt",
      "new_id": "8e472887672824b5241433a77c45917fbd076fc1",
      "new_mode": 33188,
      "new_path": "build_tools/embed_data/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "0d8131fb141a93708af59ef5db524e85fce8485e",
      "old_mode": 33188,
      "old_path": "build_tools/third_party/flatcc/CMakeLists.txt",
      "new_id": "d9fd5d7cb3f0dcf44abbff9216e2428e66a55b91",
      "new_mode": 33188,
      "new_path": "build_tools/third_party/flatcc/CMakeLists.txt"
    }
  ]
}
