1 #include <msp/builder/builder.h>
2 #include <msp/fs/stat.h>
3 #include "clanglinker.h"
7 ClangLinker::ClangLinker(Builder &b, const Architecture &a):
8 CustomizedTool(b, "LINK", a)
10 set_command("clang", true);
13 void ClangLinker::do_prepare(ToolData &tool) const
16 CustomizedTool::do_prepare(tool);
17 for(const FS::Path &p: parent.get_system_path())
18 if(FS::exists(p/"libstdc++.so"))
20 builder.get_logger().log("tools", "Got %s gcc system path: %s", static_cast<const Tool &>(tool).get_tag(), p);
21 tool.system_path.push_back(p);