dmake: added -std=c++11 flag
This commit is contained in:
parent
a1a40ac034
commit
4224f873fd
2
Makefile
2
Makefile
|
@ -60,7 +60,7 @@ else # !COMSPEC
|
|||
endif # COMSPEC
|
||||
|
||||
ifndef CXXFLAGS
|
||||
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo $(CPPCHK_GLIBCXX_DEBUG) -g
|
||||
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wconversion -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo -std=c++11 $(CPPCHK_GLIBCXX_DEBUG) -g
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_RULES),yes)
|
||||
|
|
|
@ -290,7 +290,7 @@ int main(int argc, char **argv)
|
|||
|
||||
// Makefile settings..
|
||||
if (release) {
|
||||
makeConditionalVariable(fout, "CXXFLAGS", "-O2 -DNDEBUG -Wall");
|
||||
makeConditionalVariable(fout, "CXXFLAGS", "-O2 -DNDEBUG -Wall -std=c++11");
|
||||
} else {
|
||||
// TODO: add more compiler warnings.
|
||||
// -Wlogical-op : doesn't work on older GCC
|
||||
|
@ -316,6 +316,7 @@ int main(int argc, char **argv)
|
|||
// "-Wsign-conversion "
|
||||
"-Wsign-promo "
|
||||
// "-Wunreachable-code "
|
||||
"-std=c++11 "
|
||||
"$(CPPCHK_GLIBCXX_DEBUG) "
|
||||
"-g");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue