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:
parent
814443b147
commit
e2e5bc906a
1 changed files with 4 additions and 0 deletions
4
Makefile
4
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue