)]}'
{
  "commit": "1ffd63493312ee38a66e0979e7c28e3fe3da55d8",
  "tree": "90cb0f57048cba8b5e64e82cf18b11714b99d1e8",
  "parents": [
    "2be1b1ce9071c38f095fe42fe369c2cf431d240e"
  ],
  "author": {
    "name": "Mark de Wever",
    "email": "koraq@xs4all.nl",
    "time": "Wed May 24 18:12:32 2023 +0200"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Sat May 27 03:56:20 2023 -0700"
  },
  "message": "Reland \"[CMake] Bumps minimum version to 3.20.0.\n\nThis reverts commit d763c6e5e2d0a6b34097aa7dabca31e9aff9b0b6.\n\nAdds the patch by @hans from\nhttps://github.com/llvm/llvm-project/issues/62719\nThis patch fixes the Windows build.\n\nd763c6e5e2d0a6b34097aa7dabca31e9aff9b0b6 reverted the reviews\n\nD144509 [CMake] Bumps minimum version to 3.20.0.\n\nThis partly undoes D137724.\n\nThis change has been discussed on discourse\nhttps://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-cmake-version/66193\n\nNote this does not remove work-arounds for older CMake versions, that\nwill be done in followup patches.\n\nD150532 [OpenMP] Compile assembly files as ASM, not C\n\nSince CMake 3.20, CMake explicitly passes \"-x c\" (or equivalent)\nwhen compiling a file which has been set as having the language\nC. This behaviour change only takes place if \"cmake_minimum_required\"\nis set to 3.20 or newer, or if the policy CMP0119 is set to new.\n\nAttempting to compile assembly files with \"-x c\" fails, however\nthis is workarounded in many cases, as OpenMP overrides this with\n\"-x assembler-with-cpp\", however this is only added for non-Windows\ntargets.\n\nThus, after increasing cmake_minimum_required to 3.20, this breaks\ncompiling the GNU assembly for Windows targets; the GNU assembly is\nused for ARM and AArch64 Windows targets when building with Clang.\nThis patch unbreaks that.\n\nD150688 [cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump\n\nThe build uses other mechanism to select the runtime.\n\nFixes #62719\n\nReviewed By: #libc, Mordante\n\nDifferential Revision: https://reviews.llvm.org/D151344\n\nGitOrigin-RevId: cbaa3597aaf6273e66b3f445ed36a6458143fe6a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c5a7b2478e504a52ed394d48d9da4be67239f1c7",
      "old_mode": 33188,
      "old_path": "CMakeLists.txt",
      "new_id": "6489aa17c2292ca364c560c651d9225f2d33c871",
      "new_mode": 33188,
      "new_path": "CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "a302306cc3021fb79606d5500cf5cbc616c7fee3",
      "old_mode": 33188,
      "old_path": "lib/builtins/CMakeLists.txt",
      "new_id": "c3e22a8f354fc4e4864e3b43401139e1a6be9232",
      "new_mode": 33188,
      "new_path": "lib/builtins/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "771652f438f811976da529e9e39e9f32ac65766f",
      "old_mode": 33188,
      "old_path": "lib/crt/CMakeLists.txt",
      "new_id": "32fd61b1fa11edffe41f73c6082a0b4f050cbc88",
      "new_mode": 33188,
      "new_path": "lib/crt/CMakeLists.txt"
    }
  ]
}
