aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/types.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-13 15:38:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-13 15:38:53 +0200
commit23827edd998db30dd1f0d6a14f09399aa7d07b69 (patch)
treead5d7669b167efde8e01894c72d091196f58bcdf /libbuild2/cc/types.cxx
parentd92ea3a7cff0dae578005a914df799e1e11efc8e (diff)
Add ${c,cxx}.find_system_{header,library}() functions
Diffstat (limited to 'libbuild2/cc/types.cxx')
-rw-r--r--libbuild2/cc/types.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/types.cxx b/libbuild2/cc/types.cxx
index 666b048..bd68147 100644
--- a/libbuild2/cc/types.cxx
+++ b/libbuild2/cc/types.cxx
@@ -68,7 +68,7 @@ namespace build2
{
path f (s, 1, s.size () - 2);
- path p;
+ path p; // Reuse the buffer.
for (const dir_path& d: sys_inc_dirs)
{
if (file_exists ((p = d, p /= f),