summaryrefslogtreecommitdiffhomepage
path: root/Builder.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-18 16:31:14 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-18 16:31:14 +0200
commitf857007dbb6a0a26a6828017da64540eda452fbf (patch)
treea2fc22abb236c6f07a9b9425a87b18f5f2e189f8 /Builder.cpp
parent8a4dfbbbe76a2aef35427b7915d6e28bab165c43 (diff)
Link different kinds of libs
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);
}