From: Mikko Rasa Date: Fri, 29 Sep 2006 19:56:57 +0000 (+0000) Subject: Pass -DDEBUG when doing a debug build X-Git-Tag: 0.9~57 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4c1d94fb9b70157f9c44b7feaf29ec585ae29276;p=builder.git Pass -DDEBUG when doing a debug build --- diff --git a/source/package.cpp b/source/package.cpp index d937daf..2d5d97c 100644 --- a/source/package.cpp +++ b/source/package.cpp @@ -77,7 +77,10 @@ void Package::create_build_info() } if(strtobool(config.get_option("debug").value)) + { build_info.cflags.push_back("-ggdb"); + build_info.defines.push_back("DEBUG"); + } build_info.unique(); export_binfo.unique();