[all-commits] [llvm/llvm-project] 480643: [CMake] Remove dead code setting policies to NEW

Raul Tambre via All-commits all-commits at lists.llvm.org
Tue Jan 19 07:24:47 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 480643a95cd157e654f4f97e8231b18850e7d79a
      https://github.com/llvm/llvm-project/commit/480643a95cd157e654f4f97e8231b18850e7d79a
  Author: Raul Tambre <raul at tambre.ee>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    M clang/CMakeLists.txt
    M compiler-rt/CMakeLists.txt
    M flang/CMakeLists.txt
    M libcxx/CMakeLists.txt
    M libcxx/utils/ci/runtimes/CMakeLists.txt
    M libcxxabi/CMakeLists.txt
    M libunwind/CMakeLists.txt
    M lldb/CMakeLists.txt
    M llvm/CMakeLists.txt
    M mlir/examples/standalone/CMakeLists.txt

  Log Message:
  -----------
  [CMake] Remove dead code setting policies to NEW

cmake_minimum_required(VERSION) calls cmake_policy(VERSION),
which sets all policies up to VERSION to NEW.
LLVM started requiring CMake 3.13 last year, so we can remove
a bunch of code setting policies prior to 3.13 to NEW as it
no longer has any effect.

Reviewed By: phosek, #libunwind, #libc, #libc_abi, ldionne

Differential Revision: https://reviews.llvm.org/D94374




More information about the All-commits mailing list