From 3d224bcb822081c4aa54a82d514bea07f7c459fe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Oct 2021 10:52:15 +0200 Subject: Optimize internal scope implementation --- libbuild2/cc/module.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc/module.hxx') 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 iscope; + const scope* iscope_current; // Temporary storage for data::sys_*_dirs_*. // -- cgit v1.1