diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 11:48:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 11:48:55 +0200 |
commit | acfa68e443f2ec694d2716b8437bee1594d004b6 (patch) | |
tree | 6cfcaeca074a7ca4ace2d66647e047eeaa64f96e /libbuild2/bin | |
parent | 4168cda2363f3d796d0b9922852e249aac3131ba (diff) |
Fix bug in installed libraries matching logic
Diffstat (limited to 'libbuild2/bin')
-rw-r--r-- | libbuild2/bin/target.cxx | 2 | ||||
-rw-r--r-- | libbuild2/bin/target.hxx | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libbuild2/bin/target.cxx b/libbuild2/bin/target.cxx index 94851cd..bf701c9 100644 --- a/libbuild2/bin/target.cxx +++ b/libbuild2/bin/target.cxx @@ -53,7 +53,7 @@ namespace build2 const target_type libx::static_type { "libx", - &target::static_type, + &mtime_target::static_type, nullptr, nullptr, nullptr, diff --git a/libbuild2/bin/target.hxx b/libbuild2/bin/target.hxx index 8be8c23..f8d2dd0 100644 --- a/libbuild2/bin/target.hxx +++ b/libbuild2/bin/target.hxx @@ -200,10 +200,14 @@ namespace build2 // Common base for lib{} and libul{} groups. // - class LIBBUILD2_BIN_SYMEXPORT libx: public target + // Use mtime_target as a base for the "trust me it exists" functionality + // which we use, for example, to have installed lib{} prerequisites that + // are matched by the fallback file rule. + // + class LIBBUILD2_BIN_SYMEXPORT libx: public mtime_target { public: - using target::target; + using mtime_target::mtime_target; public: static const target_type static_type; |