mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00
[perf-training] Ignore ' (in-process)' prefix from -###
After D69825, the output of clang -### when running in process can be prefixed by ' (in-process)'. Skip it.
This commit is contained in:
parent
12e479475a
commit
03689fe97f
@ -131,7 +131,15 @@ def get_cc1_command_for_args(cmd, env):
|
||||
print('Fatal error: unable to determine cc1 command: %r' % cc_output)
|
||||
exit(1)
|
||||
|
||||
cc1_cmd = shlex.split(cc_commands[0])
|
||||
cc_command = cc_commands[0]
|
||||
|
||||
# When cc1 runs in the same process as the driver, it prefixes the cc1
|
||||
# invocation with ' (in-process)'. Skip it.
|
||||
skip_pfx_line = ' (in-process)'
|
||||
if cc_command.startswith(skip_pfx_line):
|
||||
cc_command = cc_command[len(skip_pfx_line):]
|
||||
|
||||
cc1_cmd = shlex.split(cc_command)
|
||||
if not cc1_cmd:
|
||||
print('Fatal error: unable to determine cc1 command: %r' % cc_output)
|
||||
exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user