aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-30 16:11:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-30 16:11:44 +0200
commitddb7dbbb37475d77e53e813472f9e28d05195714 (patch)
treeb875a487e2d3377cb9b504995113f3fcfe28b105 /libbuild2
parentaf5ed67002b7031e1735968674bacb5ee868165f (diff)
Make build_installed const
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/utility-installed.cxx2
-rw-r--r--libbuild2/utility-uninstalled.cxx2
-rw-r--r--libbuild2/utility.hxx5
3 files changed, 4 insertions, 5 deletions
diff --git a/libbuild2/utility-installed.cxx b/libbuild2/utility-installed.cxx
index 5ef8811..9135c21 100644
--- a/libbuild2/utility-installed.cxx
+++ b/libbuild2/utility-installed.cxx
@@ -10,7 +10,7 @@
namespace build2
{
- bool build_installed = true;
+ const bool build_installed = true;
}
#endif
diff --git a/libbuild2/utility-uninstalled.cxx b/libbuild2/utility-uninstalled.cxx
index b4bbe93..0006e1a 100644
--- a/libbuild2/utility-uninstalled.cxx
+++ b/libbuild2/utility-uninstalled.cxx
@@ -6,5 +6,5 @@
namespace build2
{
- bool build_installed = false;
+ const bool build_installed = false;
}
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx
index e4b5bcb..f6b6d3a 100644
--- a/libbuild2/utility.hxx
+++ b/libbuild2/utility.hxx
@@ -144,7 +144,7 @@ namespace build2
// Whether running installed build.
//
- LIBBUILD2_SYMEXPORT extern bool build_installed;
+ LIBBUILD2_SYMEXPORT extern const bool build_installed;
// --[no-]mtime-check
//
@@ -169,8 +169,7 @@ namespace build2
// state dump). If it is empty, then relative() below returns the original
// path.
//
- // @@ CTX: this could be an issue if changed concurrently from several
- // contexts.
+ // Note: watch out for concurrent changes from multiple build contexts.
//
LIBBUILD2_SYMEXPORT extern const dir_path* relative_base;