)]}'
{
  "commit": "3ce39bb78b9c1cc3ca65b8a62ae798fcf7fe44ee",
  "tree": "e8a8f6150c69f975296d01b24ad8398a876077eb",
  "parents": [
    "c196103a5b61087792bf1e6970f19b7b1f3e7f09"
  ],
  "author": {
    "name": "Wenju He",
    "email": "wenju.he@intel.com",
    "time": "Mon Jul 06 03:42:41 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Jul 06 18:42:41 2026 +0800"
  },
  "message": "[offload] Fix duplicate __llvm_write_custom_profile on Windows PGO builds (#207366)\n\nMSVC/clang-cl lack __attribute__((weak)), so GlobalHandler.cpp provided\na strong stub for __llvm_write_custom_profile. When clang_rt.profile is\nlinked (e.g. instrumented/PGO builds) lld-link rejects the duplicate\nstrong symbol.\n\nReplace the stub + CMake workaround with the /alternatename linker\npragma, which is the standard Windows weak-symbol equivalent used by\ncompiler-rt itself. The linker picks compiler-rt\u0027s strong definition\nwhen present.\n\nFix the guard: use _WIN32 \u0026\u0026 !__MINGW32__ (not _MSC_VER) so the stub and\n/alternatename pragma apply to plain clang-on-Windows too, while MinGW\n(which supports __attribute__((weak)) natively) continues to use the\nreal weak declaration.\n\nAlso fix the stub signature from 8 to 10 parameters to match the header.\n\nAssisted-by: Claude",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0298e238a469b25b783a1a1fb2da94cff357ea75",
      "old_mode": 33188,
      "old_path": "offload/plugins-nextgen/common/src/GlobalHandler.cpp",
      "new_id": "1611a7a6b1ce24231528b4d144ddd85ec37beee3",
      "new_mode": 33188,
      "new_path": "offload/plugins-nextgen/common/src/GlobalHandler.cpp"
    }
  ]
}
