Skip to content
Snippets Groups Projects
Commit 143ea0fc authored by Omar Awile's avatar Omar Awile
Browse files

fixes to the build system to match ppmcore

parent 58dfd513
No related branches found
No related tags found
No related merge requests found
......@@ -6365,10 +6365,10 @@ if test "${enable_dev+set}" = set; then :
fi
if test "x${dev_compile}" = xyes; then
if test "x${vendor}" == xintel; then
DEBUG="-g -O1 -check pointers -check bounds -traceback"
if test "x${vendor}" = xintel; then
DEBUG="-g -O0 -check pointers -check bounds -traceback -diag-disable 10120"
elif test "x${vendor}" == xgnu; then
elif test "x${vendor}" = xgnu; then
DEBUG="-g -O0 -fbounds-check -fbacktrace"
else
......@@ -6384,15 +6384,17 @@ if test "${enable_debug+set}" = set; then :
fi
if test "x${debug_compile}" = xyes; then
echo "#define __DEBUG" >> ./src/ppm_define.h
if test "x${vendor}" == xintel; then
DEBUG="-O1 -g -debug all -check all -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds -traceback"
CPPFLAGS="$CPPFLAGS -D__DEBUG"
# echo "#define __DEBUG" >> ./src/ppm_define.h
if test "x${vendor}" = xintel; then
DEBUG="-O0 -g -debug all -check all -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds -check uninit -traceback -diag-disable 10120"
elif test "x${vendor}" == xgnu; then
elif test "x${vendor}" = xgnu; then
DEBUG="-O0 -g -fbounds-check -fbacktrace -ftrapv -fno-automatic"
else
DEBUG="-O1 -g"
DEBUG="-O0 -g"
fi
else
......
......@@ -217,9 +217,9 @@ dev_compile=no
AC_ARG_ENABLE([dev],[AS_HELP_STRING([--enable-dev],
[enable development mode (default is no)])],[dev_compile=yes])
if test "x${dev_compile}" = xyes; then
if test "x${vendor}" == xintel; then
AC_SUBST(DEBUG,["-g -O1 -check pointers -check bounds -traceback"])
elif test "x${vendor}" == xgnu; then
if test "x${vendor}" = xintel; then
AC_SUBST(DEBUG,["-g -O0 -check pointers -check bounds -traceback -diag-disable 10120"])
elif test "x${vendor}" = xgnu; then
AC_SUBST(DEBUG,["-g -O0 -fbounds-check -fbacktrace"])
else
AC_SUBST(DEBUG,["-g"])
......@@ -230,13 +230,14 @@ debug_compile=no
AC_ARG_ENABLE([debug],[AS_HELP_STRING([--enable-debug],
[enable debug mode (default is no)])],[debug_compile=yes])
if test "x${debug_compile}" = xyes; then
echo "#define __DEBUG" >> ./src/ppm_define.h
if test "x${vendor}" == xintel; then
AC_SUBST(DEBUG,["-O1 -g -debug all -check all -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds -traceback"])
elif test "x${vendor}" == xgnu; then
AC_SUBST(CPPFLAGS,["$CPPFLAGS -D__DEBUG"])
# echo "#define __DEBUG" >> ./src/ppm_define.h
if test "x${vendor}" = xintel; then
AC_SUBST(DEBUG,["-O0 -g -debug all -check all -fp-stack-check -heap-arrays -ftrapuv -check pointers -check bounds -check uninit -traceback -diag-disable 10120"])
elif test "x${vendor}" = xgnu; then
AC_SUBST(DEBUG,["-O0 -g -fbounds-check -fbacktrace -ftrapv -fno-automatic"])
else
AC_SUBST(DEBUG,["-O1 -g"])
AC_SUBST(DEBUG,["-O0 -g"])
fi
else
if test "x${vendor}" = xintel; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment