Use -fno-exceptions flag for PUGIXML_NO_EXCEPTIONS build

This makes sure that no exception handling mechanisms are used if
PUGXML_NO_EXCEPTIONS is defined.
This commit is contained in:
Arseny Kapoulkine 2015-04-11 22:41:39 -07:00
parent 814443b147
commit e2e5bc906a

View file

@ -30,6 +30,10 @@ ifneq ($(defines),standard)
CXXFLAGS+=-D $(subst $(COMMA), -D ,$(defines))
endif
ifneq ($(findstring PUGIXML_NO_EXCEPTIONS,$(defines)),)
CXXFLAGS+=-fno-exceptions
endif
OBJECTS=$(SOURCES:%=$(BUILD)/%.o)
all: $(EXECUTABLE)