aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-23 00:25:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-30 14:29:53 +0300
commit4defdceb773444b843364bd8235c816f8adc8986 (patch)
tree97ef45fa4291d85ae59d0a99497f28034704aed1
parentf93507209633ce2f9904bcac246feb3961b7c090 (diff)
Adapt to inventing path_match_flags
-rw-r--r--build2/cc/link-rule.cxx7
-rw-r--r--build2/test/script/runner.cxx4
2 files changed, 6 insertions, 5 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx
index ca51700..c24655a 100644
--- a/build2/cc/link-rule.cxx
+++ b/build2/cc/link-rule.cxx
@@ -2372,10 +2372,9 @@ namespace build2
return true;
};
- path_search (p,
- rm,
- dir_path () /* start */,
- false /* follow_symlinks */);
+ // Doesn't follow symlinks.
+ //
+ path_search (p, rm, dir_path () /* start */, path_match_flags::none);
}
catch (const system_error&) {} // Ignore errors.
}
diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx
index 2e37f3a..2f82fc7 100644
--- a/build2/test/script/runner.cxx
+++ b/build2/test/script/runner.cxx
@@ -860,10 +860,12 @@ namespace build2
//
try
{
+ // Doesn't follow symlinks.
+ //
path_search (p,
rm,
dir_path () /* start */,
- false /* follow_symlinks */);
+ path_match_flags::none);
}
catch (const system_error& e)
{