diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-11 22:41:39 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-11 22:42:27 -0700 |
commit | e2e5bc906a06f7937319896d55254e4881888ce4 (patch) | |
tree | f990db73215c1112d91719b2a6b09dbb913f2f92 | |
parent | 814443b147e6159a0ad2842fabc1288ec6a0ee24 (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.
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |