return result;
}
-void MsvcLinker::do_prepare()
+void MsvcLinker::do_prepare(ToolData &tool) const
{
- string arch_dir = (architecture->get_bits()==64 ? "x64" : "x86");
+ const std::string &tool_tag = static_cast<Tool &>(tool).get_tag();
+ const Architecture &arch = *static_cast<Tool &>(tool).get_architecture();
+ string arch_dir = (arch.get_bits()==64 ? "x64" : "x86");
const FS::Path &vc_base_dir = ms_tools.get_vc_base_dir();
- system_path.push_back(vc_base_dir/"lib"/arch_dir);
+ tool.system_path.push_back(vc_base_dir/"lib"/arch_dir);
const FS::Path &win_sdk_dir = ms_tools.get_windows_sdk_dir();
const string &win_sdk_ver = ms_tools.get_windows_sdk_version();
- system_path.push_back(win_sdk_dir/"lib"/win_sdk_ver/"ucrt"/arch_dir);
- system_path.push_back(win_sdk_dir/"lib"/win_sdk_ver/"um"/arch_dir);
+ tool.system_path.push_back(win_sdk_dir/"lib"/win_sdk_ver/"ucrt"/arch_dir);
+ tool.system_path.push_back(win_sdk_dir/"lib"/win_sdk_ver/"um"/arch_dir);
string path;
- for(const FS::Path &p: system_path)
+ for(const FS::Path &p: tool.system_path)
{
append(path, ";", p.str());
- builder.get_logger().log("tools", "Got %s system path: %s", tag, p);
+ builder.get_logger().log("tools", "Got %s system path: %s", tool_tag, p);
}
setenv("LIB", path);