)]}'
{
  "commit": "05bdf9409b8086e3a0efd208b648e4662be00f5d",
  "tree": "e7237b186f138a6f4d0d052e750a011d81d7c09f",
  "parents": [
    "a8bf9c8352dc5791585438a2909624489eaf981c"
  ],
  "author": {
    "name": "Jay Zhuang",
    "email": "jayzhuang@google.com",
    "time": "Fri Nov 20 16:18:09 2026 +0800"
  },
  "committer": {
    "name": "fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri Nov 20 10:29:09 2026 -0800"
  },
  "message": "[build] Remove -fPIC from rapidjson_config\n\n`rapidjson_config` is a public config of the header-only\n`//third_party/rapidjson` source_set, so its `-fPIC` reaches every\ndirect dependent, including all `//zircon/system/ulib/zxtest` users.\nOn Fuchsia executables it comes after `-fPIE` from\n`//build/config:executable_config` and wins, so GN compiles them as\nPIC while Bazel, whose BUILD.bazel does not pass `-fPIC`, compiles\nthem as PIE.\n\nThe flag was added in https://fxrev.dev/863351 because the host Python\nextension `host_x64/fidl_codec.so` statically linked\n`//src/lib/fidl_codec`, and the `thread_local` buffer in rapidjson\u0027s\n`GenericValue::operator[]` produced an R_X86_64_TPOFF32 relocation\nthat cannot be linked into a shared object unless compiled as PIC.\nUnlike Fuchsia shared objects, host shared objects are not built in a\n`-shared` toolchain, so their static dependencies do not get `-fPIC`.\n\nThat extension was removed in https://fxrev.dev/1930626. In a core.x64\nbuild with //bundles/kitchen_sink, //bundles/buildbot/core and\n//bundles/buildbot/host, every shared_library and loadable_module that\ndepends on rapidjson is built in `x64-shared`, where `-fPIC` comes\nfrom `//build/config:shared_library_config`, and no host, Linux or\nproc-macro shared object depends on it.\n\nNO_IFTTT\u003dBUILD.bazel already omits -fPIC; this restores GN/Bazel parity\n\nTest: fx gn desc: radar-integration-test:bin keeps -fPIE, no -fPIC;\n  audio_effects_example(x64-shared) still gets -fPIC\nTest: Built dependents in x64, x64-shared, host_x64 and linux_x64;\n  host_x64/json_parser_unittests passed (18/18)\nTest: CQ dry run on patch set 1: 92 builders passed, 3 failed on\n  unrelated starnix_ltp_tests\nChange-Id: I62cf8d6ea80f25c0a6eb25eb4d1ac85a15c703a5\nReviewed-on: https://fuchsia-review.googlesource.com/c/third_party/rapidjson/+/1994720\nLint: android-build-ayeaye@system.gserviceaccount.com \u003candroid-build-ayeaye@system.gserviceaccount.com\u003e\nCommit-Queue: Jay Zhuang \u003cjayzhuang@google.com\u003e\nFuchsia-Auto-Submit: Jay Zhuang \u003cjayzhuang@google.com\u003e\nReviewed-by: David Turner \u003cdigit@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c2a41e60832575b58635d5b5c580d867d947ca38",
      "old_mode": 33188,
      "old_path": "BUILD.gn",
      "new_id": "4e8e847adb1ce28ce364fed01ca1402e4351fe2c",
      "new_mode": 33188,
      "new_path": "BUILD.gn"
    }
  ]
}
