diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 16:19:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-19 16:19:29 +0300 |
commit | 90a6531951546ae88a695410013b908b50cd6fd0 (patch) | |
tree | 441f38bf549354469370ca781801c591dc89aadc /libbrep/build.cxx | |
parent | d1d777fbe517b00544402cc8bdaa99c6550ce417 (diff) |
Rename build states to unbuilt, building and built
Diffstat (limited to 'libbrep/build.cxx')
-rw-r--r-- | libbrep/build.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libbrep/build.cxx b/libbrep/build.cxx index 33aad45..ece2fd7 100644 --- a/libbrep/build.cxx +++ b/libbrep/build.cxx @@ -13,9 +13,9 @@ namespace brep { switch (s) { - case build_state::untested: return "untested"; - case build_state::testing: return "testing"; - case build_state::tested: return "tested"; + case build_state::unbuilt: return "unbuilt"; + case build_state::building: return "building"; + case build_state::built: return "built"; } return string (); // Should never reach. @@ -24,9 +24,9 @@ namespace brep build_state to_build_state (const string& s) { - if (s == "untested") return build_state::untested; - else if (s == "testing") return build_state::testing; - else if (s == "tested") return build_state::tested; + if (s == "unbuilt") return build_state::unbuilt; + else if (s == "building") return build_state::building; + else if (s == "built") return build_state::built; else throw invalid_argument ("invalid build state '" + s + "'"); } @@ -44,7 +44,7 @@ namespace brep configuration (id.configuration), toolchain_name (move (tnm)), toolchain_version (move (tvr)), - state (build_state::testing), + state (build_state::building), timestamp (timestamp_type::clock::now ()), forced (false), machine (move (mnm)), |