Skip to content

Commit 250bd08

Browse files
authored
2.19: release makefile (#8054)
1 parent 1975875 commit 250bd08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ ifeq (clang++, $(findstring clang++,$(CXX)))
132132
CPPCHK_GLIBCXX_DEBUG=
133133
endif
134134
ifndef CXXFLAGS
135-
CXXFLAGS=-pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-sign-compare -Wno-multichar -Woverloaded-virtual -g
135+
CXXFLAGS=-O2 -Wall -Wno-sign-compare -Wno-multichar
136136
endif
137137

138+
override CPPFLAGS += -DNDEBUG
139+
138140
ifeq (g++, $(findstring g++,$(CXX)))
139141
override CXXFLAGS += -pipe
140142
endif
@@ -385,7 +387,7 @@ dmake: tools/dmake/dmake.o cli/filelister.o $(libcppdir)/pathmatch.o $(libcppdir
385387
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
386388

387389
run-dmake: dmake
388-
./dmake
390+
./dmake --release
389391

390392
clean:
391393
rm -f build/*.cpp build/*.o lib/*.o cli/*.o frontend/*.o test/*.o tools/dmake/*.o externals/*/*.o testrunner dmake cppcheck cppcheck.exe cppcheck.1

0 commit comments

Comments
 (0)