Merge ebdca940b4 into 7f91301946
This commit is contained in:
commit
15c9bbc3e1
@ -4,9 +4,9 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
env:
|
env:
|
||||||
- DEFINES=standard
|
- DEFINES=PUGIXML_NO_CXX11
|
||||||
- DEFINES=PUGIXML_WCHAR_MODE
|
- DEFINES=PUGIXML_NO_CXX11,PUGIXML_WCHAR_MODE
|
||||||
- DEFINES=PUGIXML_COMPACT
|
- DEFINES=PUGIXML_NO_CXX11,PUGIXML_COMPACT
|
||||||
script:
|
script:
|
||||||
- make test config=coverage defines=$DEFINES -j2
|
- make test config=coverage defines=$DEFINES -j2
|
||||||
- make test config=release defines=$DEFINES -j2
|
- make test config=release defines=$DEFINES -j2
|
||||||
|
|||||||
7
Makefile
7
Makefile
@ -47,9 +47,10 @@ ifneq ($(findstring PUGIXML_NO_EXCEPTIONS,$(defines)),)
|
|||||||
CXXFLAGS+=-fno-exceptions
|
CXXFLAGS+=-fno-exceptions
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(findstring PUGIXML_NO_CXX11,$(defines)),)
|
ifneq ($(findstring PUGIXML_NO_CXX11,$(defines)),)
|
||||||
# Can't use std=c++11 since Travis-CI has gcc 4.6.3
|
CXXFLAGS+=-std=c++03
|
||||||
CXXFLAGS+=-std=c++0x
|
else
|
||||||
|
CXXFLAGS+=-std=c++11
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
|
OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user