4 #include <msp/builder/tool.h>
9 Common base class for GNU compilers. Turns SourceFiles into ObjectFiles.
11 Since invocation is mostly the same for all language frontends, most of the
12 logic is here and the individual tools only handle creating source files of
15 class GnuCompiler: public Tool
18 GnuCompiler(Builder &, const Architecture &, const std::string &);
20 Target *create_source(const Component &, const Msp::FS::Path &) const override;
21 Target *create_source(const Msp::FS::Path &) const override;
22 Target *create_target(const std::vector<Target *> &, const std::string &) override;
23 std::string create_build_signature(const BuildInfo &) const override;
25 void do_prepare(ToolData &) const override;
26 void prepare_syspath(ToolData &) const;
27 void prepare_version(ToolData &) const;
28 unsigned query_version(const std::string &, const std::string &) const;
31 static ExternalTask::Arguments _run(const ObjectFile &, Msp::FS::Path &);