aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
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;