From 5a0c64081a197bd9179f64871ee61303c1495566 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 3 Jul 2012 10:12:45 +0000 Subject: [PATCH] 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 --- deal.II/aclocal.m4 | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.5