MCPcopy Create free account
hub / github.com/carbonengine/trinity / get_modified

Function get_modified

shadercompiler/pythonBuildScript/build.py:188–197  ·  view source on GitHub ↗
(compiler, work_items, extra_args)

Source from the content-addressed store, hash-verified

186
187
188def 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
200def get_extra_args():

Callers 1

buildFunction · 0.85

Calls 2

get_mtime_lineMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected