MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / reinit_compile_info

Method reinit_compile_info

server.py:92–105  ·  view source on GitHub ↗

all the compile information may change in background

(self)

Source from the content-addressed store, hash-verified

90 return os.path.join(self.root_path, ".compile")
91
92 def reinit_compile_info(self):
93 """all the compile information may change in background"""
94
95 # store use to save compile_datainfo. it will be reload when config changes.
96 self.store = {} # main-thread
97 self._compile_file = self.get_compile_file(self.config)
98 if os.path.exists(self._compile_file):
99 self.compile_file = self._compile_file
100 logger.info(f"use flags from {self._compile_file}")
101 else:
102 self.compile_file = None
103
104 # self._compile_file may change. need to init mtime to avoid trigger a change event
105 self.observed_info[self._compile_file] = get_mtime(self._compile_file)
106
107 @property
108 def indexStorePath(self) -> Optional[str]:

Callers 2

__init__Method · 0.95
sync_compile_fileMethod · 0.95

Calls 2

get_compile_fileMethod · 0.95
get_mtimeFunction · 0.90

Tested by

no test coverage detected