Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint
  • Loading branch information
JukkaL committed Nov 14, 2025
commit db81795e23dd6f9dfb061736764b1b45ab77aee9
7 changes: 5 additions & 2 deletions mypyc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import sys
import time
from collections.abc import Iterable
from typing import TYPE_CHECKING, Any, NoReturn, Union, cast, NamedTuple
from typing import TYPE_CHECKING, Any, NamedTuple, NoReturn, Union, cast

from mypy.build import BuildSource
from mypy.errors import CompileError
Expand All @@ -42,12 +42,14 @@
from mypyc.namegen import exported_name
from mypyc.options import CompilerOptions


class ModDesc(NamedTuple):
module: str
c_files: list[str]
other_files: list[str]
include_dirs: list[str]


LIBRT_MODULES = [
ModDesc("librt.internal", ["librt_internal.c"], [], []),
ModDesc(
Expand Down Expand Up @@ -729,7 +731,8 @@ def mypycify(
sources=[
os.path.join(build_dir, file) for file in file_names + RUNTIME_C_FILES
],
include_dirs=[include_dir()] + [os.path.join(include_dir(), d) for d in includes],
include_dirs=[include_dir()]
+ [os.path.join(include_dir(), d) for d in includes],
extra_compile_args=cflags,
)
)
Expand Down