From 8edce3ecb1a0a779c3ef6b60dcde1df51635331a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Nov 2021 12:41:53 +0200 Subject: Keep multiple prefixless entries for generated header mapping --- libbuild2/cc/compile-rule.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/cc/compile-rule.hxx') diff --git a/libbuild2/cc/compile-rule.hxx b/libbuild2/cc/compile-rule.hxx index daea600..f573968 100644 --- a/libbuild2/cc/compile-rule.hxx +++ b/libbuild2/cc/compile-rule.hxx @@ -100,8 +100,9 @@ namespace build2 // don't treat foobar as a sub-directory of foo. // // The priority is used to decide who should override whom. Lesser - // values are considered higher priority. See append_prefixes() for - // details. + // values are considered higher priority. Note that we can have multiple + // prefixless mapping (where priority is used to determine the order). + // See append_prefixes() for details. // // @@ The keys should be normalized. // @@ -110,7 +111,7 @@ namespace build2 dir_path directory; size_t priority; }; - using prefix_map = dir_path_map; + using prefix_map = dir_path_multimap; void append_prefixes (prefix_map&, const target&, const variable&) const; -- cgit v1.1