X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgnucompiler.cpp;h=fe1d735db197c6acff4512fe08721ec94b2ffaf5;hb=62853c9bb228cbb541304e866036cd931e3f5500;hp=c877ae13a953544ae49633cce7761b3357fd187f;hpb=8a98d59b2b4954f51eb3f649d3675af976154de6;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index c877ae1..fe1d735 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -278,6 +278,8 @@ Task *GnuCompiler::run(const Target &target) const argv.push_back("-Os"); else argv.push_back(format("-O%d", binfo.optimize)); + if(binfo.debug) + argv.push_back("-fno-omit-frame-pointer"); } if(binfo.threads && architecture->get_system()!="windows" && architecture->get_system()!="darwin") argv.push_back("-pthread");