From 8b07d68462c5fec92fd5a4aab77ddfd425d1f8d0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Jan 2018 12:46:10 +0200 Subject: Implement compiler_info caching --- build2/cc/module.hxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'build2/cc/module.hxx') diff --git a/build2/cc/module.hxx b/build2/cc/module.hxx index 928e16c..de61611 100644 --- a/build2/cc/module.hxx +++ b/build2/cc/module.hxx @@ -52,20 +52,24 @@ namespace build2 size_t sys_lib_dirs_extra; // First extra path (size if none). size_t sys_inc_dirs_extra; // First extra path (size if none). - compiler_info ci; // Note: some members are moved from. + const compiler_info* ci_; private: + // Defined in gcc.cxx. + // dir_paths - gcc_header_search_paths (process_path&, scope&) const; // gcc.cxx + gcc_header_search_paths (const process_path&, scope&) const; dir_paths - gcc_library_search_paths (process_path&, scope&) const; // gcc.cxx + gcc_library_search_paths (const process_path&, scope&) const; + // Defined in msvc.cxx. + // dir_paths - msvc_header_search_paths (process_path&, scope&) const; // msvc.cxx + msvc_header_search_paths (const process_path&, scope&) const; dir_paths - msvc_library_search_paths (process_path&, scope&) const; // msvc.cxx + msvc_library_search_paths (const process_path&, scope&) const; private: bool new_; // See guess() and init() for details. -- cgit v1.1