#include "buildercli.h"
#include "filetarget.h"
#include "sourcepackage.h"
+#include "tool.h"
+#include "toolchain.h"
using namespace std;
using namespace Msp;
builder.set_build_type(build_type);
builder.add_default_tools();
+
+ const Toolchain &toolchain = builder.get_toolchain();
+ for(Config::InputOptions::iterator i=cmdline_options.begin(); i!=cmdline_options.end(); )
+ {
+ if(toolchain.has_tool(i->first))
+ {
+ toolchain.get_tool(i->first).set_command(i->second);
+ cmdline_options.erase(i++);
+ }
+ else
+ ++i;
+ }
}
BuilderCLI::~BuilderCLI()