openfoam/wmake/rules/General/Gcc/c++
Mark Olesen 2db4b0867e CONFIG: consolidate C++ flags per compiler type
- easier to ensure that flags are consistent
2018-03-21 11:50:57 +01:00

18 lines
471 B
Plaintext

SUFFIXES += .C .cc .cpp .cxx
CC = g++ -std=c++11
ptFLAGS = -DNoRepository -ftemplate-depth-100
# - Standard warnings
# - Less restrictive warnings (may be needed for flex++, CGAL, etc.)
c++WARN = \
-Wall -Wextra -Wold-style-cast \
-Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \
-Wno-attributes -Wno-unknown-pragmas
c++LESSWARN = \
-Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds \
-fpermissive