summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2023-03-04 18:28:13 +0100
committerMark de Wever <koraq@xs4all.nl>2023-03-04 18:28:13 +0100
commit92523a35a827539db8557bbc3ecab7f9ea3f6ade (patch)
tree12470d10badc36a0bedd848cbaf0f9c4dab66179 /runtimes
parent2708869801ae00f4681f6b2d9d69b25b3fce26b6 (diff)
downloadllvm-92523a35a827539db8557bbc3ecab7f9ea3f6ade.tar.gz
Revert "[CMake] Bumps minimum version to 3.20.0."
Some build bots have not been updated to the new minimal CMake version. Reverting for now and ping the buildbot owners. This reverts commit 44c6b905f8527635e49bb3ea97dea315f92d38ec.
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index d4025644d128..50f782205ab4 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -1,5 +1,12 @@
# This file handles building LLVM runtime sub-projects.
-cmake_minimum_required(VERSION 3.20.0)
+cmake_minimum_required(VERSION 3.13.4)
+if ("${CMAKE_VERSION}" VERSION_LESS "3.20.0")
+ message(WARNING
+ "Your CMake version is ${CMAKE_VERSION}. Starting with LLVM 17.0.0, the "
+ "minimum version of CMake required to build LLVM will become 3.20.0, and "
+ "using an older CMake will become an error. Please upgrade your CMake to "
+ "at least 3.20.0 now to avoid issues in the future!")
+endif()
project(Runtimes C CXX ASM)
# Add path for custom and the LLVM build's modules to the CMake module path.