X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnucompiler.cpp;h=a6e838d1e49ea160bf6d320d647fe44ed9be7381;hb=92ea7eac95040f2f4fce0bbcd799800e7701118e;hp=064b0a0f6e1faafc86d778c778afd4e6feae3573;hpb=cb0be83edbfeea6c649705a045dc3a3b990e9ce3;p=builder.git diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 064b0a0..a6e838d 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -150,7 +150,7 @@ void GnuCompiler::prepare_syspath() start = newline+1; } } - catch(const runtime_error &e) + catch(const runtime_error &) { } } @@ -210,9 +210,9 @@ Task *GnuCompiler::run(const Target &target) const string tag_for_std = (tag=="OBJC" ? "CC" : tag); if(binfo.standards.count(tag_for_std)) - argv.push_back("-std="+get_item(binfo.standards, tag_for_std)); + argv.push_back("-std="+get_item(binfo.standards, tag_for_std).str()); if(tag=="OBJC" && binfo.standards.count(tag)) - argv.push_back("-fobjc-std="+get_item(binfo.standards, tag)); + argv.push_back("-fobjc-std="+get_item(binfo.standards, tag).str()); if(binfo.warning_level>=1) { @@ -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");