Switching to g++ and corresponding changes according to C++ requirements.

This commit is contained in:
Ruben Ayrapetyan
2015-01-16 12:53:41 +03:00
parent 557df54f9d
commit 005b5370fc
57 changed files with 883 additions and 666 deletions
+3 -4
View File
@@ -7,7 +7,7 @@ endif
ENGINE_NAME ?= jerry
CROSS_COMPILE ?= arm-none-eabi-
CC = gcc
CC = g++
LD = ld
OBJDUMP = objdump
OBJCOPY = objcopy
@@ -206,8 +206,7 @@ TARGET_CPU = $(strip $(if $(filter linux,$(TARGET_SYSTEM)), x64, \
# Warnings
CFLAGS_WARNINGS ?= -Wall -Wextra -Wpedantic -Wlogical-op -Winline \
-Wformat-nonliteral -Winit-self -Wstack-protector \
-Wconversion -Wsign-conversion -Wformat-security \
-Wstrict-prototypes -Wmissing-prototypes
-Wconversion -Wsign-conversion -Wformat-security
CFLAGS_WERROR ?= -Werror
CFLAGS_WFATAL_ERRORS ?= -Wfatal-errors
@@ -235,7 +234,7 @@ CFLAGS_CORTEXM4 ?= -mlittle-endian -mcpu=cortex-m4 -march=armv7e-m -mthumb \
# Common
#
CFLAGS_COMMON ?= $(INCLUDES) -std=c99 -nostdlib
CFLAGS_COMMON ?= $(INCLUDES) -std=c++11 -nostdlib -fno-exceptions -fno-rtti
LDFLAGS ?= -lgcc
ifeq ($(OPTION_OPTIMIZE),enable)