diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-04 15:25:10 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-04 15:25:10 +0300 |
commit | f2e26b666ab63c8c4ea1be0df4e64530147470b6 (patch) | |
tree | 67159a861f630acec1871594a6ee2169a69e4a83 /build2/cc | |
parent | 182d743d15810d2a8393ed7fa5d565cf3a394694 (diff) |
Add ignore_error parameter for functions that check file system entry existence
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/gcc.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/build2/cc/gcc.cxx b/build2/cc/gcc.cxx index 64c78ca..bcf2a89 100644 --- a/build2/cc/gcc.cxx +++ b/build2/cc/gcc.cxx @@ -109,10 +109,7 @@ namespace build2 { dir_path d (s, 1, s.size () - 1); - // @@ Pass true as the ignore_error argument for exists(), when - // supported. - // - if (d.absolute () && exists (d) && + if (d.absolute () && exists (d, true) && find (r.begin (), r.end (), d.normalize ()) == r.end ()) r.emplace_back (move (d)); } |