devtools (version 1.1)

with_debug: Temporarily set debugging compilation flags.

Description

Temporarily set debugging compilation flags.

Usage

with_debug(code,
    PKG_CFLAGS = "-UNDEBUG -Wall -pedantic -g -O0",
    PKG_CXXFLAGS = "-UNDEBUG -Wall -pedantic -g -O0",
    PKG_FFLAGS = "-g -O0", PKG_FCFLAGS = "-g -O0")

Arguments

code
to execute.
PKG_CFLAGS
flags for compiling C code
PKG_CXXFLAGS
flags for compiling C++ code
PKG_FFLAGS
flags for compiling Fortran code.
PKG_FCFLAGS
flags for Fortran 9x code.

Examples

Run this code
install("mypkg")
with_debug(install("mypkg"))

Run the code above in your browser using DataLab