summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-11 22:41:39 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-11 22:42:27 -0700
commite2e5bc906a06f7937319896d55254e4881888ce4 (patch)
treef990db73215c1112d91719b2a6b09dbb913f2f92 /Makefile
parent814443b147e6159a0ad2842fabc1288ec6a0ee24 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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)