diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-05 12:41:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-11-05 12:41:53 +0200 |
commit | 8edce3ecb1a0a779c3ef6b60dcde1df51635331a (patch) | |
tree | 341986ace72c7492f97f987be24cc76a8eea577b /libbuild2/cc/compile-rule.hxx | |
parent | ff74197b90a9dcf8e6575b011616624d66fc26d5 (diff) |
Keep multiple prefixless entries for generated header mapping
Diffstat (limited to 'libbuild2/cc/compile-rule.hxx')
-rw-r--r-- | libbuild2/cc/compile-rule.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
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<prefix_value>; + using prefix_map = dir_path_multimap<prefix_value>; void append_prefixes (prefix_map&, const target&, const variable&) const; |