New options CPP_DEBUG_FLAGS etc.

Issue #152 closed
Erik Schnetter created an issue

I suggest to add new configuration flags CPP_DEBUG_FLAGS etc., which allow passing special CPP flags for debugging. These complement the existing C_DEBUG_FLAGS and the (global) CPPFLAGS. In particular, I suggest to add the following flags:

CPP_DEBUG_FLAGS FPP_DEBUG_FLAGS CPP_OPTIMISE_FLAGS FPP_OPTIMISE_FLAGS CPP_PROFILE_FLAGS FPP_PROFILE_FLAGS CPP_OPENMP_FLAGS FPP_OPENMP_FLAGS CPP_WARN_FLAGS FPP_WARN_FLAGS

Applications are e.g. adding -Wall to CPP_WARN_FLAGS, or -fopenmp to CPP_OPENMP_FLAGS.

I enclose a patch that implements this.

Keyword:

Comments (3)

  1. Erik Schnetter reporter
    • removed comment

    Note: After applying this patch, one has to re-run autoconf213 in the lib/make directory.

    Also, after committing this patch, we may want to update lib/make/force-rebuild or .../force-reconfigure.

  2. Log in to comment