aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/target.cxx b/build/target.cxx
index 3b030ee..6cd1fc9 100644
--- a/build/target.cxx
+++ b/build/target.cxx
@@ -17,6 +17,17 @@ using namespace std;
namespace build
{
+ // target_state
+ //
+ static const char* target_state_[] = {
+ "unknown", "postponed", "unchanged", "changed", "failed"};
+
+ ostream&
+ operator<< (ostream& os, target_state ts)
+ {
+ return os << target_state_[static_cast<size_t> (ts)];
+ }
+
// recipe
//
const recipe empty_recipe;