aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/utility.cxx')
-rw-r--r--build2/utility.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/utility.cxx b/build2/utility.cxx
index ca6b239..4b68edb 100644
--- a/build2/utility.cxx
+++ b/build2/utility.cxx
@@ -89,6 +89,7 @@ namespace build2
return l;
}
+ path argv0;
dir_path work;
dir_path home;
const dir_path* relative_base = &work;
@@ -505,8 +506,10 @@ namespace build2
bool exception_unwinding_dtor = false;
void
- init (uint16_t v)
+ init (const char* a0, uint16_t v)
{
+ argv0 = path (a0);
+
// Diagnostics verbosity.
//
verb = v;