Skip to content

Commit

Permalink
Add possibility to pass additional CXXFLAGS to makefile as pugiflags
Browse files Browse the repository at this point in the history
  • Loading branch information
brandl-muc committed Sep 13, 2024
1 parent 16eb5da commit e9da0a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ MAKEFLAGS+=-r
config=debug
defines=standard
cxxstd=c++11
pugiflags=
# set cxxstd=any to disable use of -std=...

BUILD=build/make-$(firstword $(CXX))-$(config)-$(defines)-$(cxxstd)
Expand Down Expand Up @@ -40,6 +41,10 @@ ifneq ($(defines),standard)
CXXFLAGS+=-D $(subst $(COMMA), -D ,$(defines))
endif

ifneq ($(pugiflags),)
CXXFLAGS+=$(pugiflags)
endif

ifneq ($(findstring PUGIXML_NO_EXCEPTIONS,$(defines)),)
CXXFLAGS+=-fno-exceptions
endif
Expand Down

0 comments on commit e9da0a6

Please sign in to comment.