X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.h;h=e8a4e3ce996f749659485aa7133ec9ec82fcf58e;hb=HEAD;hp=821f7469f10f41c6d9bf870b464b519f36c81dd6;hpb=d1f9551e05c9d341149eb490e05b1465d3d6b711;p=builder.git diff --git a/source/gnulinker.h b/source/gnulinker.h deleted file mode 100644 index 821f746..0000000 --- a/source/gnulinker.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef GNULINKER_H_ -#define GNULINKER_H_ - -#include "tool.h" - -/** -The GNU linker. Turns ObjectFiles into Executables and SharedLibraries. To -create a shared library, specify "shared" as the second argument to -create_target. - -Uses either gcc or g++ depending on what was used to compile the object files. -*/ -class GnuLinker: public Tool -{ -private: - class Linker: public SubTool - { - private: - std::string compiler_tag; - - public: - Linker(GnuLinker &, const std::string &); - - std::string create_build_signature(const BuildInfo &) const override; - private: - void do_prepare() override; - public: - Task *run(const Target &) const override; - }; - - Linker *default_linker = 0; - Linker *cxx_linker = 0; - -public: - GnuLinker(Builder &, const Architecture &); - ~GnuLinker(); - - Target *create_target(const std::vector &, const std::string &) override; - Target *create_install(Target &) const override; -protected: - void do_prepare() override; -public: - Task *run(const Target &) const override; -}; - -#endif