aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/compile-rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-14 14:43:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-14 14:43:43 +0200
commitaa29434a2feebc8925307372c27a5f56021620fc (patch)
tree3c1b84306268c245ac40e25c89a66f740a548152 /libbuild2/cc/compile-rule.hxx
parent7728fe67a610c437c3303170c3a254a751169338 (diff)
Add header cache to cc::compile_rule::enter_header()
Diffstat (limited to 'libbuild2/cc/compile-rule.hxx')
-rw-r--r--libbuild2/cc/compile-rule.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/cc/compile-rule.hxx b/libbuild2/cc/compile-rule.hxx
index 00965fc..16b33fa 100644
--- a/libbuild2/cc/compile-rule.hxx
+++ b/libbuild2/cc/compile-rule.hxx
@@ -22,6 +22,8 @@ namespace build2
namespace cc
{
+ class config_module;
+
// The order is arranged so that their integral values indicate whether
// one is a "stronger" than another.
//
@@ -42,7 +44,7 @@ namespace build2
dyndep_rule
{
public:
- compile_rule (data&&);
+ compile_rule (data&&, const scope&);
virtual bool
match (action, target&) const override;
@@ -120,7 +122,7 @@ namespace build2
pair<const file*, bool>
enter_header (action, const scope&, file&, linfo,
- path&, bool, bool,
+ path&&, bool, bool,
optional<prefix_map>&, const srcout_map&) const;
optional<bool>
@@ -180,6 +182,7 @@ namespace build2
private:
const string rule_id;
+ const config_module* header_cache_;
};
}
}