)]}'
{
  "commit": "438f887080b6710029d09200ef0e102ea3541cbb",
  "tree": "fe7a4307b0ced534e25c13fffd879c1d9884e411",
  "parents": [
    "2329d0436f5eeda7e73f37b9cfc1dcbce6edd8ff"
  ],
  "author": {
    "name": "Reid Kleckner",
    "email": "rnk@llvm.org",
    "time": "Mon Jan 12 17:18:51 2026 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Jan 12 17:18:51 2026 -0800"
  },
  "message": "[cmake] Make CMAKE_BUILD_TYPE\u003dRelease the default (#174520)\n\nCurrently, we report a fatal error if the user leaves CMAKE_BUILD_TYPE\nblank. This was implemented in https://reviews.llvm.org/D124153 /\n350bdf9227ceb , based on this RFC:\n\nhttps://discourse.llvm.org/t/rfc-select-a-better-linker-by-default-or-warn-about-using-bfd/61899/1\n\nTom Stellard mentioned that he\u0027d like to revisit this on Discord, and\nAiden, myself, and apparently most people on the original RFC agree, so\nI\u0027m proposing we do it. However, on the review, several folks objected\nand insisted that Debug was a better default. I want to reopen the\nquestion.\n\nI think we\u0027ve made the wrong tradeoff. I wish Debug builds worked out of\nthe box on most systems, but they don\u0027t, and LLVM has only gotten bigger\nover the last four years, making the build scalability problems of Debug\nbuilds worse. I think we should optimize our build configuration for new\ndevelopers, not experienced longtime contributors who are invested\nenough to tweak the build to their liking.\n\nWith this PR, we emit a warning, and set the build type to Release,\nwhich has a higher likelihood of success for first-time users. Making\nthe build work out of the box is very important for making LLVM\ndevelopment more accessible to new contributors, so it seems worth\nsmoothing over this rough edge.\n\nA separate possible improvement would be to set\nLLVM_ENABLE_ASSERTIONS\u003dON, but that is out of scope for this PR.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f0e4f5d7d6f60537cd816a795cc98ac7fbfd857e",
      "old_mode": 33188,
      "old_path": "llvm/CMakeLists.txt",
      "new_id": "fcbfed4953832451fc4ff87cc0681af1e4b5c2ab",
      "new_mode": 33188,
      "new_path": "llvm/CMakeLists.txt"
    }
  ]
}
