aboutsummaryrefslogtreecommitdiff
path: root/build2/scope.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/scope.hxx')
-rw-r--r--build2/scope.hxx6
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