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

Method get_compile_file

server.py:81–90  ·  view source on GitHub ↗
(self, config: ServerConfig)

Source from the content-addressed store, hash-verified

79 # other time, the shared state is readonly and safe..
80
81 def get_compile_file(self, config: ServerConfig):
82 # isolate xcode generate compile file and manual compile_file
83 if config.kind == "xcode":
84 hash = hashlib.md5(config.build_root.encode("utf-8")).hexdigest()
85 name = ["compile_file", config.scheme or "_last", hash]
86 if config.skip_validate_bin:
87 name[0] = "compile_file1"
88 return os.path.join(self.cache_path, "-".join(name))
89 # manual compile_file
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"""

Callers 2

reinit_compile_infoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected