From f2e26b666ab63c8c4ea1be0df4e64530147470b6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 4 Oct 2017 15:25:10 +0300 Subject: Add ignore_error parameter for functions that check file system entry existence --- build2/cc/gcc.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'build2/cc/gcc.cxx') 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)); } -- cgit v1.1