From cde3ea58802c700ed8fd3b11e46eb973a7018a12 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Jun 2019 08:38:56 +0200 Subject: Improve diagnostics --- build2/scope.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build2/scope.hxx') diff --git a/build2/scope.hxx b/build2/scope.hxx index 83396b4..afd294e 100644 --- a/build2/scope.hxx +++ b/build2/scope.hxx @@ -361,6 +361,12 @@ namespace build2 // NULL means no strong amalgamtion. }; + inline ostream& + operator<< (ostream& os, const scope& s) + { + return os << s.out_path ().string (); // Always absolute. + } + // Temporary scope. The idea is to be able to create a temporary scope in // order not to change the variables in the current scope. Such a scope is // not entered in to the scope map. As a result it can only be used as a -- cgit v1.1