(self, config: ServerConfig)
| 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""" |
no outgoing calls
no test coverage detected