From e2e5bc906a06f7937319896d55254e4881888ce4 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 11 Apr 2015 22:41:39 -0700 Subject: 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. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0e64129..59f055b 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.3