From 5caf00606c361af8cc6867c5812e3e743d6f4522 Mon Sep 17 00:00:00 2001 From: Tilmann Scheller Date: Fri, 17 Jun 2016 12:41:39 +0200 Subject: [PATCH] Remove GCC 4.7 build requirement. The GCC 4.7 check is a leftover from the times when JerryScript was a C++11 codebase, it was there to ensure that JerryScript is compiled with a GCC version which has sufficient support for C++11. Today JerryScript is a pure C99 codebase (enforced by building all the sources with -std=c99) and this check is no longer necessary. JerryScript should now build just fine even with rather old versions of GCC. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb1f5c442..83b0fa35c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,17 +26,6 @@ project (Jerry C ASM) endif() endif() - if(CMAKE_COMPILER_IS_GNUCC) - # Require gcc of version >= 4.7.0 - execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion - OUTPUT_VARIABLE GNU_CC_VERSION - OUTPUT_STRIP_TRAILING_WHITESPACE) - if(${GNU_CC_VERSION} VERSION_LESS 4.7.0) - message(FATAL_ERROR "gcc compiler version 4.7.0 or higher required") - endif() - endif() - - # Imported targets prefix set(PREFIX_IMPORTED_LIB imported_)