dmake, qmake: more sensitive compiler and runtime

This commit is contained in:
Daniel Marjamäki 2010-03-09 08:24:52 +01:00
parent cffe20a440
commit 2ba3f59fc8
2 changed files with 2 additions and 3 deletions

View File

@ -26,9 +26,8 @@ win32 {
} }
# Add more strict compiling flags for GCC # Add more strict compiling flags for GCC
# These flags are used in original (not generated by QMake) makefiles
contains(QMAKE_CXX, g++) { contains(QMAKE_CXX, g++) {
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op
CONFIG(debug, debug|release) { CONFIG(debug, debug|release) {
# checked STL # checked STL

View File

@ -142,7 +142,7 @@ int main(int argc, char **argv)
// Makefile settings.. // Makefile settings..
fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op "; fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op ";
fout << (release ? "-O2 -DNDEBUG" : "-g") << "\n"; fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n";
fout << "CXX=g++\n"; fout << "CXX=g++\n";
fout << "BIN=${DESTDIR}/usr/bin\n\n"; fout << "BIN=${DESTDIR}/usr/bin\n\n";
fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml\n"; fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml\n";