From e2e5bc906a06f7937319896d55254e4881888ce4 Mon Sep 17 00:00:00 2001
From: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
Date: Sat, 11 Apr 2015 22:41:39 -0700
Subject: [PATCH] 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 0e641296..59f055b2 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)
-- 
GitLab