diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-15 13:08:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-15 13:08:03 +0200 |
commit | 4184f61e2b795dd4c4b4a974a890bdaf98906b82 (patch) | |
tree | 1c5bf04a1378f36c131fb49df4c181987e98963f /build2/cc/compile.hxx | |
parent | 63ed0a2d1b185c4f68a4443be1d65bb5649d3570 (diff) |
Enter outer prefixes in generated header prefix map
Diffstat (limited to 'build2/cc/compile.hxx')
-rw-r--r-- | build2/cc/compile.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build2/cc/compile.hxx b/build2/cc/compile.hxx index 9d85763..2878e3d 100644 --- a/build2/cc/compile.hxx +++ b/build2/cc/compile.hxx @@ -78,9 +78,18 @@ namespace build2 // we continue with the example). Specifically, we need to make sure we // 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. + // // @@ The keys should be normalized. // - using prefix_map = butl::dir_path_map<dir_path>; + struct prefix_value + { + dir_path directory; + size_t priority; + }; + using prefix_map = butl::dir_path_map<prefix_value>; void append_prefixes (prefix_map&, const target&, const variable&) const; |