summaryrefslogtreecommitdiffhomepage
path: root/Builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Builder.cpp')
-rw-r--r--Builder.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Builder.cpp b/Builder.cpp
index 4850be3..74fbcdf 100644
--- a/Builder.cpp
+++ b/Builder.cpp
@@ -179,7 +179,7 @@ Builder::Builder(const pt::ptree& ptree, const std::string& target):
_all_targets{get_all_targets(ptree, target)},
_all_objects{get_all_objects(ptree, target)},
_include_paths{get_subelements<fs::path>(ptree, target, "includepath")},
- _link_libs{get_subelements<std::string>(ptree, target, "linklib")}
+ _link_libs{get_subelements<fs::path>(ptree, target, "linklib")}
{
// intentionally defer creation of _dependencies to build()
// to prevent creation of .d files in clean()
@@ -204,7 +204,7 @@ std::vector<fs::path> Builder::dependencies_of(const fs::path& p) const
}
}
-std::vector<std::string> Builder::link_libs_of(const fs::path& p) const
+std::vector<fs::path> Builder::link_libs_of(const fs::path& p) const
{
try {
return _link_libs.at(p);
@@ -336,7 +336,7 @@ void Builder::build_file(const fs::path& p) {
} else {
// link
std::vector<fs::path> objects{dependencies_of(p)};
- std::vector<std::string> link_libs{link_libs_of(p)};
+ std::vector<fs::path> link_libs{link_libs_of(p)};
command = _lang.getLinkCommand(p, objects, link_libs);
}