using namespace std;
using namespace Msp;
-GnuLinker::GnuLinker(Builder &b, const Architecture &a, const FS::Path &sysroot):
+GnuLinker::GnuLinker(Builder &b, const Architecture &a):
Tool(b, a, "LINK")
{
input_suffixes.push_back(".o");
processing_unit = COMPONENT;
- if(!sysroot.empty())
- build_info.sysroot = sysroot;
-
default_linker = new Linker(*this, "CC");
cxx_linker = new Linker(*this, "CXX");
}
void GnuLinker::Linker::do_prepare()
{
+ parent.prepare();
+ build_info = parent.get_build_info();
+ system_path = parent.get_system_path();
+
Tool &compiler = builder.get_toolchain().get_tool(compiler_tag);
if(dynamic_cast<GnuCompiler *>(&compiler))
{