X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcompilecommandsgenerator.cpp;h=bbd4e980742c70c96621d234ff7eeda0845a1c0c;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=855a80a3307db63e3e4f24222e8c092c1ba33f00;hpb=2a23a19ff6717b32ddc45f84681c5c969c967e45;p=builder.git diff --git a/source/compilecommandsgenerator.cpp b/source/compilecommandsgenerator.cpp index 855a80a..bbd4e98 100644 --- a/source/compilecommandsgenerator.cpp +++ b/source/compilecommandsgenerator.cpp @@ -11,15 +11,15 @@ using namespace std; using namespace Msp; -Target *CompileCommandsGenerator::create_target(const vector &, const string &) +CompileCommandsGenerator::CompileCommandsGenerator(Builder &b): + Tool(b, "CCJG") { - throw logic_error("Not implemented"); + set_run_internal(_run); } -Task *CompileCommandsGenerator::run(const Target &target) const +Target *CompileCommandsGenerator::create_target(const vector &, const string &) { - const CompileCommandsJson &cmds = dynamic_cast(target); - return new InternalTask([&cmds]{ return _run(cmds); }); + throw logic_error("Not implemented"); } bool CompileCommandsGenerator::_run(const CompileCommandsJson &cmds)