Skip to content

Commit 5c09180

Browse files
author
William Jakobsson
committed
2.21: Updated Makefile
1 parent a6b32dd commit 5c09180

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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
@@ -396,7 +398,7 @@ dmake: tools/dmake/dmake.o cli/filelister.o $(libcppdir)/pathmatch.o $(libcppdir
396398
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
397399

398400
run-dmake: dmake
399-
./dmake
401+
./dmake --release
400402

401403
clean:
402404
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)