(compiler, work_items, extra_args)
| 186 | |
| 187 | |
| 188 | def get_modified(compiler, work_items, extra_args): |
| 189 | logging.info('Searching for out of date files') |
| 190 | outputs = {x.compiled: x for x in work_items} |
| 191 | p = subprocess.Popen([compiler, '/mtime', '/O3'] + extra_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
| 192 | stdout, stderr = p.communicate('\n'.join(x.get_mtime_line() for x in work_items).encode()) |
| 193 | for line in stdout.decode().split('\n'): |
| 194 | line = line.strip() |
| 195 | item = outputs.get(line, None) |
| 196 | if item: |
| 197 | yield item |
| 198 | |
| 199 | |
| 200 | def get_extra_args(): |
no test coverage detected