aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-20 17:03:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-20 17:03:54 +0200
commit9c03dbab42d4499890955a98d30d91290d714d9a (patch)
treef731db58f624ffaaef500201de936e004f080fb8 /libbuild2
parent1ff8c01e12a2ec68bbe304e53add5679b3afffb9 (diff)
Fix bug in cc::pkconfig_save()
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/pkgconfig.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 74c5bdd..647f9a7 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -1311,7 +1311,7 @@ namespace build2
// This is the lib{} group if we are generating the common file and the
// target itself otherwise.
//
- const file& g (common ? l.group->as<file> () : l);
+ const target& g (common ? *l.group : l);
// By default we assume things go into install.{include, lib}.
//