mirror of https://github.com/axmolengine/axmol.git
enable c++11 for linux and natvie client projects
This commit is contained in:
parent
4f484cbcbf
commit
0a64e7a041
|
@ -2,8 +2,10 @@ all:
|
|||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
CCFLAGS += -MMD -Wall -Werror -fPIC
|
||||
CXXFLAGS += -MMD -Wall -Werror -fPIC
|
||||
# Remove -Wall, because it enables -Wunused-function, and this warning exists in webp.h
|
||||
# when enable c++11. I don't know why.
|
||||
CCFLAGS += -MMD -Werror -fPIC
|
||||
CXXFLAGS += -MMD -Werror -fPIC -std=c++11
|
||||
ARFLAGS = cr
|
||||
|
||||
DEFINES += -DLINUX
|
||||
|
|
|
@ -10,7 +10,7 @@ NACL_AR ?= $(NACL_ARCH)-nacl-ar
|
|||
NACL_CC ?= $(NACL_ARCH)-nacl-gcc
|
||||
NACL_CXX ?= $(NACL_ARCH)-nacl-g++
|
||||
CCFLAGS += -Wall -Werror
|
||||
CXXFLAGS += -Wall -Werror
|
||||
CXXFLAGS += -Wall -Werror -std=c++11
|
||||
ARFLAGS = cr
|
||||
|
||||
THIS_MAKEFILE := $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
||||
|
|
Loading…
Reference in New Issue