)]}'
{
  "commit": "e87de61feda6df60866f0921fc19917c6ae3a498",
  "tree": "d520b7c8faba0cd9a2b24532959c31fda9d8da83",
  "parents": [
    "4767399a6fee8df401e9c146816d943d069380f5"
  ],
  "author": {
    "name": "Ulises Mendez Martinez",
    "email": "umendez@google.com",
    "time": "Fri Jul 31 15:22:08 2026 +0000"
  },
  "committer": {
    "name": "Ulises Mendez Martinez",
    "email": "umendez@google.com",
    "time": "Wed Aug 05 05:09:20 2026 -0700"
  },
  "message": "kleaf: isolate compdb generated headers per target\n\nkernel_compile_commands overwrites target-specific generated headers\n(like autoconf.h) when multiple DDK modules are present, because they\nwere all copied to the same shared directory.\n\nFix this by copying each target\u0027s generated headers to a target-unique\nsubdirectory (using the path of compile_commands_common_out_dir) under\nthe output directory. Update the replacement logic to swap\n${COMMON_OUT_DIR} with this isolated path.\n\nNote: This changes the directory structure of the output files under the\ndirectory specified by `--out_directory`. Instead of copying all\ngenerated headers and intermediate files (e.g. ddk_modinfo.c) directly\nto the root of `--out_directory`, they are now placed in target-unique\nsubdirectories matching their Bazel output path structure.\n\nBug: 540154366\nTest: //common-modules/virtual-device/kleaf_test/compdb_test:compdb_overwrite_test_target\nChange-Id: I539b5583be07729529f1c9cebac8d5bdba8a7471\n(cherry picked from commit 104451345cd371cf406f4f482e03381c686ce8ff)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bdd99e0463ddd7cb5a3680cdf407579b981a3abb",
      "old_mode": 33188,
      "old_path": "kleaf/impl/kernel_compile_commands.bzl",
      "new_id": "be68a83b5d97ffac699b3ad5b8c7e8ff699a8662",
      "new_mode": 33188,
      "new_path": "kleaf/impl/kernel_compile_commands.bzl"
    },
    {
      "type": "modify",
      "old_id": "19e7c7e6a11eaeb9a0bce2a36c84689252b78fac",
      "old_mode": 33188,
      "old_path": "kleaf/tests/integration_test/integration_test.py",
      "new_id": "cd6b14b49ed1b6aa19ebdce12f67191ef364f4d1",
      "new_mode": 33188,
      "new_path": "kleaf/tests/integration_test/integration_test.py"
    }
  ]
}
