mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
aedi: make mypy linter happy
state.py:112: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
This commit is contained in:
parent
e8d8bba6ab
commit
acfcef3683
1 changed files with 5 additions and 3 deletions
|
@ -109,10 +109,12 @@ class BuildState:
|
||||||
|
|
||||||
version_output = subprocess.run(('clang', '--version'), check=True, capture_output=True)
|
version_output = subprocess.run(('clang', '--version'), check=True, capture_output=True)
|
||||||
version_match = re.search(r'\(clang-([\d.]+)\)', version_output.stdout.decode('ascii'))
|
version_match = re.search(r'\(clang-([\d.]+)\)', version_output.stdout.decode('ascii'))
|
||||||
version = StrictVersion(version_match.group(1))
|
|
||||||
|
|
||||||
if version.major == 1500 and version.minor == 0:
|
if version_match:
|
||||||
self._linker_flags += ' -Wl,-ld_classic'
|
version = StrictVersion(version_match.group(1))
|
||||||
|
|
||||||
|
if version.major == 1500 and version.minor == 0:
|
||||||
|
self._linker_flags += ' -Wl,-ld_classic'
|
||||||
|
|
||||||
return self._linker_flags
|
return self._linker_flags
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue