Remove g++ support from the [C]Make files.
Move all '.cpp' files to '.c'. Rename comments from 'cpp' to 'c'. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -18,4 +18,3 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||
|
||||
CMAKE_FORCE_C_COMPILER(afl-gcc GNU)
|
||||
CMAKE_FORCE_CXX_COMPILER(afl-g++ GNU)
|
||||
|
||||
@@ -18,6 +18,5 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
|
||||
CMAKE_FORCE_C_COMPILER(afl-gcc GNU)
|
||||
CMAKE_FORCE_CXX_COMPILER(afl-g++ GNU)
|
||||
|
||||
set(FLAGS_COMMON_ARCH -ffixed-rbp)
|
||||
|
||||
@@ -16,7 +16,6 @@ set(CMAKE_SYSTEM_NAME Darwin)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
|
||||
find_program(CMAKE_C_COMPILER NAMES gcc cc)
|
||||
find_program(CMAKE_CXX_COMPILER NAMES g++ c++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES strip)
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ set(CMAKE_SYSTEM_NAME EXTERNAL)
|
||||
set(CMAKE_SYSTEM_PROCESSOR "${EXTERNAL_CMAKE_SYSTEM_PROCESSOR}")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER(${EXTERNAL_CMAKE_C_COMPILER} GNU)
|
||||
CMAKE_FORCE_CXX_COMPILER(${EXTERNAL_CMAKE_CXX_COMPILER} GNU)
|
||||
|
||||
@@ -16,7 +16,6 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR armv7l-el)
|
||||
|
||||
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
|
||||
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES arm-linux-gnueabi-strip strip)
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR armv7l-hf)
|
||||
|
||||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
|
||||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES arm-linux-gnueabihf-strip strip)
|
||||
#
|
||||
|
||||
@@ -16,6 +16,5 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||
|
||||
find_program(CMAKE_C_COMPILER NAMES i686-linux-gnu-gcc i686-unknown-linux-gnu-gcc)
|
||||
find_program(CMAKE_CXX_COMPILER NAMES i686-linux-gnu-g++ i686-unknown-linux-gnu-g++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES i686-linux-gnu-strip i686-unknown-linux-gnu-strip strip)
|
||||
|
||||
@@ -16,7 +16,6 @@ set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
|
||||
find_program(CMAKE_C_COMPILER NAMES x86_64-linux-gnu-gcc x86_64-unknown-linux-gnu-gcc)
|
||||
find_program(CMAKE_CXX_COMPILER NAMES x86_64-linux-gnu-g++ x86_64-unknown-linux-gnu-g++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES x86_64-linux-gnu-strip x86_64-unknown-linux-gnu-strip strip)
|
||||
|
||||
|
||||
@@ -21,4 +21,3 @@ set(CMAKE_SYSTEM_VERSION STM32F3)
|
||||
set(FLAGS_COMMON_ARCH -mlittle-endian -mthumb -mcpu=cortex-m4 -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard)
|
||||
|
||||
CMAKE_FORCE_C_COMPILER(arm-none-eabi-gcc GNU)
|
||||
CMAKE_FORCE_CXX_COMPILER(arm-none-eabi-g++ GNU)
|
||||
|
||||
@@ -21,4 +21,3 @@ set(CMAKE_SYSTEM_VERSION STM32F4)
|
||||
set(FLAGS_COMMON_ARCH -mlittle-endian -mthumb -mcpu=cortex-m4 -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard)
|
||||
|
||||
CMAKE_FORCE_C_COMPILER(arm-none-eabi-gcc GNU)
|
||||
CMAKE_FORCE_CXX_COMPILER(arm-none-eabi-g++ GNU)
|
||||
|
||||
@@ -16,6 +16,5 @@ set(CMAKE_SYSTEM_NAME Openwrt)
|
||||
set(CMAKE_SYSTEM_PROCESSOR mips)
|
||||
|
||||
set(CMAKE_C_COMPILER mipsel-openwrt-linux-gcc)
|
||||
set(CMAKE_CXX_COMPILER mipsel-openwrt-linux-g++)
|
||||
# FIXME: This could break cross compilation, when the strip is not for the target architecture
|
||||
find_program(CMAKE_STRIP NAMES mipsel-openwrt-linux-strip strip)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
foreach(SOURCE ${TARGET_SOURCES})
|
||||
# Add to list if it is C or C++ source
|
||||
get_filename_component(SOURCE_EXTENSION ${SOURCE} EXT)
|
||||
if("${SOURCE_EXTENSION}" STREQUAL ".c" OR "${SOURCE_EXTENSION}" STREQUAL ".cpp")
|
||||
if("${SOURCE_EXTENSION}" STREQUAL ".c")
|
||||
set(CPPCHECK_SOURCES_LIST ${CPPCHECK_SOURCES_LIST} ${SOURCE})
|
||||
|
||||
set(ADD_CPPCHECK_COMMAND true)
|
||||
|
||||
Reference in New Issue
Block a user