From: Wolfgang Bangerth Date: Tue, 3 Jul 2012 10:12:45 +0000 (+0000) Subject: Set a flag for the PGI C++ compiler that allows it to compile all but one file in... X-Git-Tag: v8.0.0~2469 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3581448077dda8d3d4ebff00dd360bd9ca514f25;p=dealii.git Set a flag for the PGI C++ compiler that allows it to compile all but one file in debug mode. git-svn-id: https://svn.dealii.org/trunk@25665 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index ecb001446e..68b2e81386 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -957,6 +957,12 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl CXXFLAGSG="$CXXFLAGSG -DDEBUG -g --display_error_number --diag_suppress 68 --diag_suppress 111 --diag_suppress 128 --diag_suppress 155 --diag_suppress 177 --diag_suppress 175 --diag_suppress 185 --diag_suppress 236 --diag_suppress 284" CXXFLAGSO="$CXXFLAGSO -fast -O2 --display_error_number --diag_suppress 68 --diag_suppress 111 --diag_suppress 128 --diag_suppress 155 --diag_suppress 177 --diag_suppress 175 --diag_suppress 185 --diag_suppress 236 --diag_suppress 284" CXXFLAGSPIC="-Kpic" + + dnl pgCC can't (as of writing this, with version 12.5 in mid-2012) compile a part of BOOST. + dnl Fortunately, BOOST provides a workaround by setting a specific preprocessor + dnl symbol that can be set. Do so. + CXXFLAGSG="$CXXFLAGSG -DBOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE" + CXXFLAGSO="$CXXFLAGSO -DBOOST_MPL_CFG_NO_HAS_XXX_TEMPLATE" ;; kai_cc)