optim.opts 736 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
GXX_WARNING_OPTS=" \
    -Wall \
    -Wmissing-include-dirs \
    -Wcast-align \
    -Wno-sign-compare \
    -Wno-packed-bitfield-compat \
    -Wno-unused-parameter"
# additional -W flags for g++ which will lead to many warnings in
# other dune modules
#    -Wextra \
#    -Wfloat-equal \
#    -Wstrict-overflow \

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

23 24 25
# do not write a file .dune.resume to the home directory
RESUME_FILE=/dev/null

26
# configure flags 
27 28
CONFIGURE_FLAGS=" \
  CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
29
  --disable-dunedevel \
30
  --disable-documentation \
31
  --disable-parallel \
32 33
  --disable-mpiruntest"