aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-08-29 02:13:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-08-29 02:13:00 +0200
commitf0b7196db8c4dd34c4b2247943e4dac44864b89c (patch)
tree2f8106ec3532a69a627fe6539b539d8bd61783b5 /libbuild2/utility.hxx
parentb527b31bb74ead51260f5bcf7915e6678943993e (diff)
Add diagnostics color support on Windows (GH issue #312)
Note that currently this has to be enabled with an explicit --diag-color option. In the future the plan is to enable it by default if supported.
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx
index 43cb904..f37fc54 100644
--- a/libbuild2/utility.hxx
+++ b/libbuild2/utility.hxx
@@ -149,11 +149,9 @@ namespace build2
LIBBUILD2_SYMEXPORT extern bool diag_no_line; // --no-line
LIBBUILD2_SYMEXPORT extern bool diag_no_column; // --no-column
- // If stderr is not a terminal, then the value is absent (so can be used as
- // bool). Otherwise, it is the value of the TERM environment variable (which
- // can be NULL).
+ // True if stderr is a terminal.
//
- LIBBUILD2_SYMEXPORT extern optional<const char*> stderr_term;
+ LIBBUILD2_SYMEXPORT extern bool stderr_term;
// True if the color can be used on the stderr terminal.
//