| 1191 | return "does not compile" |
| 1192 | |
| 1193 | def PrintCmd(self, cmd, env): |
| 1194 | if self.platform == 'win32': |
| 1195 | env_prefix = 'set ' |
| 1196 | env_quoter = QuoteForSet |
| 1197 | shell_quoter = QuoteForCmd |
| 1198 | else: |
| 1199 | env_prefix = '' |
| 1200 | env_quoter = shlex.quote |
| 1201 | shell_quoter = shlex.quote |
| 1202 | |
| 1203 | def print_env(var): |
| 1204 | if env and var in env: |
| 1205 | self.Print('%s%s=%s' % (env_prefix, var, env_quoter(env[var]))) |
| 1206 | |
| 1207 | print_env('LLVM_FORCE_HEAD_REVISION') |
| 1208 | |
| 1209 | if cmd[0] == self.executable: |
| 1210 | cmd = ['python'] + cmd[1:] |
| 1211 | self.Print(*[shell_quoter(arg) for arg in cmd]) |
| 1212 | |
| 1213 | def PrintJSON(self, obj): |
| 1214 | self.Print(json.dumps(obj, indent=2, sort_keys=True)) |