diff options
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/link.cxx | 1 | ||||
-rw-r--r-- | build2/cc/pkgconfig.cxx | 8 | ||||
-rw-r--r-- | build2/cc/windows-manifest.cxx | 2 | ||||
-rw-r--r-- | build2/cc/windows-rpath.cxx | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 9a8e21c..d36e5e1 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -9,6 +9,7 @@ #include <iostream> // cerr #include <butl/path-map> +#include <butl/filesystem> // file_exists() #include <build2/depdb> #include <build2/scope> diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index 23128e4..3a7bf82 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -63,7 +63,7 @@ namespace build2 // dir_path pkgd (dir_path (libd) /= dir); - if (!dir_exists (pkgd)) + if (!exists (pkgd)) return false; // See if there is a corresponding .pc file. About half of them called @@ -82,7 +82,7 @@ namespace build2 f /= stem; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; f = pkgd; @@ -90,7 +90,7 @@ namespace build2 f += stem; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; if (proj != nullptr) @@ -99,7 +99,7 @@ namespace build2 f /= *proj; f += ".pc"; - if (file_exists (f)) + if (exists (f)) return true; } diff --git a/build2/cc/windows-manifest.cxx b/build2/cc/windows-manifest.cxx index 0666ef5..a3e87fe 100644 --- a/build2/cc/windows-manifest.cxx +++ b/build2/cc/windows-manifest.cxx @@ -99,7 +99,7 @@ namespace build2 // path mf (t.path () + ".manifest"); - if (file_exists (mf)) + if (exists (mf)) { try { diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx index e27dddb..1bef95c 100644 --- a/build2/cc/windows-rpath.cxx +++ b/build2/cc/windows-rpath.cxx @@ -157,14 +157,14 @@ namespace build2 pdb = f; pdb += ".pdb"; - if (!file_exists (pdb.c_str ())) + if (!exists (path (pdb))) { // Then try the usual naming: foo.pdb. // pdb.assign (f, 0, p); pdb += ".pdb"; - if (!file_exists (pdb.c_str ())) + if (!exists (path (pdb))) pdb.clear (); } |