diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 09:16:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-21 09:16:20 +0200 |
commit | c397402cba2f8bccaa9b8e63f7ae95f3540f54cd (patch) | |
tree | fd20bc9d0cfc69efc8f9d6975bf893d9c352565d /libbuild2/utility.hxx | |
parent | 995cd7946bf605804603fe79c6cef1ddf6db83b5 (diff) |
Factor process-wide initialization to init_process() function
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index b62d2ab..c82dcc2 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -97,6 +97,19 @@ namespace build2 // using butl::path_pattern; + // Perform process-wide initializations/adjustments/workarounds. Should be + // called once early in main(). In particular, besides other things, this + // functions does the following: + // + // - Sets PATH to include baseutils /bin on Windows. + // + // - Ignores SIGPIPE. + // + // - Calls tzset(). + // + LIBBUILD2_SYMEXPORT void + init_process (); + // Diagnostics state (verbosity level, etc; see <libbuild2/diagnostics.hxx>). // // Note on naming of values (here and in the global state below) that come @@ -138,6 +151,7 @@ namespace build2 LIBBUILD2_SYMEXPORT void init (void (*terminate) (bool), const char* argv0, + bool serial_stop, optional<bool> mtime_check = nullopt, optional<path> config_sub = nullopt, optional<path> config_guess = nullopt); |