build/python/cmake: add cast to fix mypy warning
This commit is contained in:
parent
eb23788fec
commit
a9f1bed922
@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from typing import Optional, Sequence, TextIO, Union
|
from typing import cast, Optional, Sequence, TextIO, Union
|
||||||
from collections.abc import Mapping
|
from collections.abc import Mapping
|
||||||
|
|
||||||
from build.project import Project
|
from build.project import Project
|
||||||
@ -59,7 +59,7 @@ def configure(toolchain: AnyToolchain, src: str, build: str, args: list[str]=[],
|
|||||||
cross_args = []
|
cross_args = []
|
||||||
|
|
||||||
if toolchain.is_windows:
|
if toolchain.is_windows:
|
||||||
cross_args.append('-DCMAKE_RC_COMPILER=' + toolchain.windres)
|
cross_args.append('-DCMAKE_RC_COMPILER=' + cast(str, toolchain.windres))
|
||||||
|
|
||||||
# Several targets need a sysroot to prevent pkg-config from
|
# Several targets need a sysroot to prevent pkg-config from
|
||||||
# looking for libraries on the build host (TODO: fix this
|
# looking for libraries on the build host (TODO: fix this
|
||||||
|
Loading…
Reference in New Issue
Block a user