Old python compat

This commit is contained in:
Kovid Goyal
2021-10-07 13:51:55 +05:30
parent f4b6cc6628
commit 9289ebf9c9

View File

@@ -292,7 +292,7 @@ int main(void) {
def is_gcc(cc: Iterable[str]) -> bool:
@lru_cache
@lru_cache()
def f(cc: Tuple[str]) -> bool:
raw = subprocess.check_output(cc + ('--version',)).decode('utf-8').splitlines()[0]
return '(GCC)' in raw.split()