aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-01 22:47:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-02 16:35:59 +0300
commit19bfa091d6132431713ab937332b153b31fd3759 (patch)
treef957871411d320148167309fdc38b883a57126a8 /mod/build-config.cxx
parent03afe0175b10526de1cec862191aca78dc75bc56 (diff)
Match dash-separated components (build configuration names, etc.) as directories
Diffstat (limited to 'mod/build-config.cxx')
-rw-r--r--mod/build-config.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/build-config.cxx b/mod/build-config.cxx
index b11d7ea..6f2bc43 100644
--- a/mod/build-config.cxx
+++ b/mod/build-config.cxx
@@ -318,6 +318,17 @@ namespace brep
}
}
+ // Append the trailing slash to match the resulting paths as directories.
+ // This is required for the trailing /* we could append to match absent
+ // directory path components (see path_match_flags::match_absent for
+ // details).
+ //
+ // Note that valid dash components may not contain a trailing dash.
+ // Anyway, any extra trailing slashes will be ignored by the path
+ // constructor.
+ //
+ r += '/';
+
return path (move (r));
}
}