From: Teresa Johnson Date: Fri, 28 Oct 2016 15:30:27 +0000 (+0000) Subject: [cmake] Temporarily revert enforcement of minimum GCC version increase X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=749a022c0b11c112fb5f19dc271bc7a42fb08f07;p=llvm [cmake] Temporarily revert enforcement of minimum GCC version increase Summary: This is temporary, until bot that builds public facing LLVM documentation is upgraded. It reverts only the cmake change in r284497, but leaves the doc changes in place to preserve intent. Reviewers: aaron.ballman Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D26078 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/CheckCompilerVersion.cmake b/cmake/modules/CheckCompilerVersion.cmake index 1c046ade7e1..d3e46624b94 100644 --- a/cmake/modules/CheckCompilerVersion.cmake +++ b/cmake/modules/CheckCompilerVersion.cmake @@ -8,8 +8,9 @@ if(NOT DEFINED LLVM_COMPILER_CHECKED) if(NOT LLVM_FORCE_USE_OLD_TOOLCHAIN) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) - message(FATAL_ERROR "Host GCC version must be at least 4.8!") + # FIXME: Change this to 4.8 once documentation builder bot is upgraded + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7) + message(FATAL_ERROR "Host GCC version must be at least 4.7!") endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.1) @@ -35,7 +36,8 @@ std::atomic x(0.0f); int main() { return (float)x; }" LLVM_NO_OLD_LIBSTDCXX) if(NOT LLVM_NO_OLD_LIBSTDCXX) - message(FATAL_ERROR "Host Clang must be able to find libstdc++4.8 or newer!") + # FIXME: Change this to 4.8 once documentation builder bot is upgraded + message(FATAL_ERROR "Host Clang must be able to find libstdc++4.7 or newer!") endif() set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS}) set(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQUIRED_LIBRARIES})