From f0edc0e2b67fa43c4e2410c7d3d8f1841d576749 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Aug 2016 16:37:16 +0200 Subject: Add pkg-config support for import installed Redesign library importing/exporting while at it. --- build2/utility.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build2/utility.cxx') diff --git a/build2/utility.cxx b/build2/utility.cxx index ef90084..db0d6b2 100644 --- a/build2/utility.cxx +++ b/build2/utility.cxx @@ -31,10 +31,15 @@ namespace build2 ostream& operator<< (ostream& os, const process_path& p) { - os << p.recall_string (); + if (p.empty ()) + os << ""; + else + { + os << p.recall_string (); - if (!p.effect.empty ()) - os << '@' << p.effect.string (); // Suppress relative(). + if (!p.effect.empty ()) + os << '@' << p.effect.string (); // Suppress relative(). + } return os; } -- cgit v1.1