diff --git a/Makefile b/Makefile index 71b62bab7fc..a1d7066a2f2 100644 --- a/Makefile +++ b/Makefile @@ -132,9 +132,11 @@ ifeq (clang++, $(findstring clang++,$(CXX))) CPPCHK_GLIBCXX_DEBUG= endif ifndef CXXFLAGS - 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 + CXXFLAGS=-O2 -Wall -Wno-sign-compare -Wno-multichar endif +override CPPFLAGS += -DNDEBUG + ifeq (g++, $(findstring g++,$(CXX))) override CXXFLAGS += -pipe endif @@ -385,7 +387,7 @@ dmake: tools/dmake/dmake.o cli/filelister.o $(libcppdir)/pathmatch.o $(libcppdir $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) run-dmake: dmake - ./dmake + ./dmake --release clean: 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