diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-19 08:38:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-19 08:38:56 +0200 |
commit | cde3ea58802c700ed8fd3b11e46eb973a7018a12 (patch) | |
tree | 03038c64f62b30b56334e7988e6add370520c895 /build2/scope.hxx | |
parent | a5b95ad0d6ee18f2deb9e98e3058efd12bf0f492 (diff) |
Improve diagnostics
Diffstat (limited to 'build2/scope.hxx')
-rw-r--r-- | build2/scope.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
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 |