From f857007dbb6a0a26a6828017da64540eda452fbf Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 18 May 2024 16:31:14 +0200 Subject: Link different kinds of libs --- Builder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Builder.cpp') 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(ptree, target, "includepath")}, - _link_libs{get_subelements(ptree, target, "linklib")} + _link_libs{get_subelements(ptree, target, "linklib")} { // intentionally defer creation of _dependencies to build() // to prevent creation of .d files in clean() @@ -204,7 +204,7 @@ std::vector Builder::dependencies_of(const fs::path& p) const } } -std::vector Builder::link_libs_of(const fs::path& p) const +std::vector 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 objects{dependencies_of(p)}; - std::vector link_libs{link_libs_of(p)}; + std::vector link_libs{link_libs_of(p)}; command = _lang.getLinkCommand(p, objects, link_libs); } -- cgit v1.2.3