optim.opts 679 Bytes
Newer Older
1 2
GXX_WARNING_OPTS=" \
    -Wall \
3
    -Wunused \
4 5 6 7
    -Wmissing-include-dirs \
    -Wcast-align \
    -Wno-sign-compare \
    -Wno-unused-parameter"
8

9
# additional -W flags for g++ which will lead to many warnings
10 11 12 13 14 15 16
#    -Wextra \
#    -Wfloat-equal \
#    -Wstrict-overflow \

GXX_OPTS=" \
    -fno-strict-aliasing \
    -fstrict-overflow \
17
    -fno-finite-math-only \
18 19 20
    -O3 \
    -march=native \
    -DNDEBUG=1"
21

22 23
USE_CMAKE=yes

24
# configure flags 
25 26 27
CMAKE_FLAGS=" \
  -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
  "
28

29
# for CO2 and CO2ni tests
30 31 32
# -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
# need to be set in the CMake flags
# and the module dune-alugrid must be present