1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

enable-debug option for debug flags in compile

This commit is contained in:
paboyle 2018-03-04 15:51:47 +00:00
parent 78a9e31ff0
commit 03f8da8fbc

View File

@ -15,8 +15,20 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
################ Set flags
# do not move!
#CXXFLAGS="-g $CXXFLAGS"
CXXFLAGS="-O3 $CXXFLAGS"
AC_ARG_ENABLE([debug],[AC_HELP_STRING([--enable-debug=yes|no], [enable debug compilation ])],
[ac_DEBUG=${enable_debug}], [ac_DEBUG=no])
case ${ac_DEBUG} in
yes)
CXXFLAGS="-g $CXXFLAGS"
;;
no)
CXXFLAGS="-O3 $CXXFLAGS"
;;
*)
CXXFLAGS="-O3 $CXXFLAGS"
;;
esac
############### Checks for programs
AC_PROG_CXX