aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-03-08 15:37:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-03-10 13:56:28 +0300
commit5cb43631debbebb413de54b770118b13482a6176 (patch)
tree46b4510b0225b8de2e7dc3ed71445a6a926131ee /libbuild2
parenta05ddaa95a8f7f65fe01e2c1613a354876e69839 (diff)
Fix operator<<(ostream,target_state)
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/target-state.hxx3
-rw-r--r--libbuild2/target.cxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/target-state.hxx b/libbuild2/target-state.hxx
index 48d683d..ea7015c 100644
--- a/libbuild2/target-state.hxx
+++ b/libbuild2/target-state.hxx
@@ -20,6 +20,9 @@ namespace build2
//
// Note also that value 0 is available to indicate absent/invalid state.
//
+ // NOTE: don't forget to also update operator<<(ostream,target_state) if
+ // changing anything here.
+ //
enum class target_state: uint8_t
{
unknown = 1,
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index 7ab0abd..c3c03d7 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -69,6 +69,7 @@ namespace build2
//
static const char* const target_state_[] =
{
+ "<invalid>", // Absent/invalid (see target_state for details).
"unknown",
"unchanged",
"postponed",