]> git.tdb.fi Git - builder.git/blobdiff - source/gnucompiler.cpp
More sophisticated handling of language standards
[builder.git] / source / gnucompiler.cpp
index fe1d735db197c6acff4512fe08721ec94b2ffaf5..a6e838d1e49ea160bf6d320d647fe44ed9be7381 100644 (file)
@@ -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)
        {