()
| 7 | |
| 8 | |
| 9 | def main(): |
| 10 | res = run(['gcc', '-v'], check=True, text=True, capture_output=True) |
| 11 | target = re.search(r'^Target: (.*)$', res.stderr, flags=re.M).groups()[0] |
| 12 | if target.startswith('i686'): |
| 13 | print('32') |
| 14 | elif target.startswith('x86_64'): |
| 15 | print('64') |
| 16 | else: |
| 17 | raise RuntimeError('Could not detect Mingw-w64 bitness') |
| 18 | |
| 19 | |
| 20 | if __name__ == "__main__": |
no test coverage detected