Gets the path to cl.exe based on the output of calling the environment setup batch file, followed by the equivalent of `where`.
(output_of_where)
| 1149 | |
| 1150 | |
| 1151 | def _ExtractCLPath(output_of_where): |
| 1152 | """Gets the path to cl.exe based on the output of calling the environment |
| 1153 | setup batch file, followed by the equivalent of `where`.""" |
| 1154 | # Take the first line, as that's the first found in the PATH. |
| 1155 | for line in output_of_where.strip().splitlines(): |
| 1156 | if line.startswith("LOC:"): |
| 1157 | return line[len("LOC:") :].strip() |
| 1158 | |
| 1159 | |
| 1160 | def GenerateEnvironmentFiles( |
no test coverage detected