Skip to content

Commit 02be7e6

Browse files
committed
Makefile: switch to release flags
1 parent 15ef9ad commit 02be7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ ifeq (clang++, $(findstring clang++,$(CXX)))
136136
CPPCHK_GLIBCXX_DEBUG=
137137
endif
138138
ifndef CXXFLAGS
139-
CXXFLAGS=-pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -Woverloaded-virtual $(CPPCHK_GLIBCXX_DEBUG) -g
139+
CXXFLAGS=-std=c++0x -O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-multichar
140140
endif
141141

142142
ifeq (g++, $(findstring g++,$(CXX)))
@@ -399,7 +399,7 @@ dmake: tools/dmake/dmake.o cli/filelister.o $(libcppdir)/pathmatch.o $(libcppdir
399399
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
400400

401401
run-dmake: dmake
402-
./dmake
402+
./dmake --release
403403

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

0 commit comments

Comments
 (0)