From 2c0a2b0d688b4450c72cde12ecedaa3fc3c9662a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Oct 2016 16:13:26 +0200 Subject: Add build.driver variable with build system driver path (argv[0]) --- build2/utility | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build2/utility') diff --git a/build2/utility b/build2/utility index 56e0c47..7c30395 100644 --- a/build2/utility +++ b/build2/utility @@ -83,6 +83,10 @@ namespace build2 next_word (const string&, size_t n, size_t& b, size_t& e, char d1 = ' ', char d2 = '\0'); + // Build system driver recall path (argv[0]). + // + extern path argv0; + // Work/home directories (must be initialized in main()) and relative path // calculation. // @@ -476,7 +480,7 @@ namespace build2 // Should be called early in main() once. // void - init (uint16_t verbosity); + init (const char* argv0, uint16_t verbosity); } #include -- cgit v1.1