ln.startswith('Thread model:') or
ln.startswith('InstalledDir:') or
ln.startswith('LLVM Profile Note') or
+ ln.startswith(' (in-process)') or
' version ' in ln):
continue
cc_commands.append(ln)
print('Fatal error: unable to determine cc1 command: %r' % cc_output)
exit(1)
- 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)
+ cc1_cmd = shlex.split(cc_commands[0])
if not cc1_cmd:
print('Fatal error: unable to determine cc1 command: %r' % cc_output)
exit(1)