diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-12 14:56:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-13 16:52:16 +0300 |
commit | edab35e216bc3839915129e54f98160428634283 (patch) | |
tree | 51c1ae471e39aca817038f16d33cc25be4998369 /bdep/utility.cxx | |
parent | 54c937f78562fc6a5d2ea01c8747c62ccea980cb (diff) |
Add support for default options files
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx index 4407eed..9c8057e 100644 --- a/bdep/utility.cxx +++ b/bdep/utility.cxx @@ -82,6 +82,19 @@ namespace bdep bool stderr_term; + dir_path + current_directory () + { + try + { + return dir_path::current_directory (); + } + catch (const system_error& e) + { + fail << "unable to obtain current directory: " << e << endf; + } + } + bool exists (const path& f, bool ignore_error) { |