Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a9f1bed9
Commit
a9f1bed9
authored
1 year ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build/python/cmake: add cast to fix mypy warning
parent
eb23788f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cmake.py
python/build/cmake.py
+2
-2
No files found.
python/build/cmake.py
View file @
a9f1bed9
import
os
import
re
import
subprocess
from
typing
import
Optional
,
Sequence
,
TextIO
,
Union
from
typing
import
cast
,
Optional
,
Sequence
,
TextIO
,
Union
from
collections.abc
import
Mapping
from
build.project
import
Project
...
...
@@ -59,7 +59,7 @@ def configure(toolchain: AnyToolchain, src: str, build: str, args: list[str]=[],
cross_args
=
[]
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
# looking for libraries on the build host (TODO: fix this
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment