Skip to content

Commit

Permalink
fixup! environment: fix minor typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Oct 1, 2024
1 parent c973ab4 commit bd136fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
BinaryTable, MachineInfo, Properties, known_cpu_families, CMakeVariables,
)
from . import compilers
from .compilers.mixins.visualstudio import VisualStudioLikeCompiler
from .compilers import (
is_assembly,
is_header,
Expand All @@ -43,6 +42,7 @@

if T.TYPE_CHECKING:
from .compilers import Compiler
from .compilers.mixins.visualstudio import VisualStudioLikeCompiler
from .options import ElementaryOptionValues
from .wrap.wrap import Resolver

Expand Down Expand Up @@ -342,7 +342,7 @@ def detect_windows_arch(compilers: CompilersDict) -> str:
# 32-bit and pretend like we're running under WOW64. Else, return the
# actual Windows architecture that we deduced above.
for compiler in compilers.values():
assert isinstance(compiler, VisualStudioLikeCompiler), 'for mypy'
compiler = T.cast('VisualStudioLikeCompiler', compiler)
if compiler.id == 'msvc' and (compiler.target in {'x86', '80x86'}):
return 'x86'
if compiler.id == 'clang-cl' and (compiler.target in {'x86', 'i686'}):
Expand Down

0 comments on commit bd136fd

Please sign in to comment.