diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-04 10:52:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-04 10:52:15 +0200 |
commit | 3d224bcb822081c4aa54a82d514bea07f7c459fe (patch) | |
tree | 66408aa900018ae81defb1f25ba08e9f615cacf4 /libbuild2/cc/module.hxx | |
parent | e1a1d978d364c723935acfc7b56fae8b8253d054 (diff) |
Optimize internal scope implementation
Diffstat (limited to 'libbuild2/cc/module.hxx')
-rw-r--r-- | libbuild2/cc/module.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/cc/module.hxx b/libbuild2/cc/module.hxx index 5c68482..df7fc70 100644 --- a/libbuild2/cc/module.hxx +++ b/libbuild2/cc/module.hxx @@ -63,8 +63,9 @@ namespace build2 // Cached x.internal.scope value. // - const string* internal_scope = nullptr; - const scope* internal_scope_current = nullptr; + using internal_scope = data::internal_scope; + optional<internal_scope> iscope; + const scope* iscope_current; // Temporary storage for data::sys_*_dirs_*. // |