)]}'
{
  "commit": "082fbe397d5217dc21b01c63c7f20eb6b77a3093",
  "tree": "5063236cd618f5f80b1bc98ad4ea8e43571f25dd",
  "parents": [
    "d69a9c3765dee2e650bcccebbadf72c5d42d92b1"
  ],
  "author": {
    "name": "Tom Anderson",
    "email": "thomasanderson@chromium.org",
    "time": "Thu Feb 14 17:31:32 2019 -0800"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Fri Feb 15 17:46:29 2019 +0000"
  },
  "message": "Pass -lpthread when linking instead of -pthread\n\n-pthread is meant to be passed when compiling, not linking.\nPrevents build errors on clang 9 like the following:\n\n    clang++ -fuse-ld\u003dlld -nodefaultlibs libc++.so -lc -lm -Wl,-rpath\u003d\"\\$ORIGIN/.\" -Wl,-rpath-link\u003d. -O3 -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-strip-all -static-libstdc++ -Wl,--as-needed -pthread -o gn -Wl,--start-group tools/gn/gn_main.o base.a gn_lib.a -Wl,--end-group -ldl\n     clang-9: warning: argument unused during compilation: \u0027-pthread\u0027 [-Wunused-command-line-argument]\n     ld.lld: error: undefined symbol: pthread_create\n     \u003e\u003e\u003e referenced by worker_pool.cc\n     \u003e\u003e\u003e               util/worker_pool.o:(WorkerPool::WorkerPool(unsigned long)) in archive gn_lib.a\n\nVerified the build works on earlier versions of clang and gcc.\n\nBUG\u003dchromium:932041,chromium:807400\nR\u003dbrettw\n\nChange-Id: I1b876ae43a5b9b04f82828680612641e49f86de2\nReviewed-on: https://gn-review.googlesource.com/c/4000\nReviewed-by: Brett Wilson \u003cbrettw@chromium.org\u003e\nCommit-Queue: Brett Wilson \u003cbrettw@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a7142fab7809a9d851c6ea98c19023a2b8c3a532",
      "old_mode": 33261,
      "old_path": "build/gen.py",
      "new_id": "c426c0bfc5f1ba7e169b44d492b754cb10a1872c",
      "new_mode": 33261,
      "new_path": "build/gen.py"
    }
  ]
}
