Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3ff9337
ninjabackend: fix incorrect calls to Compiler
bonzini May 8, 2026
4387516
ninjabackend: move restat from extra to specific argument
bonzini May 8, 2026
0a671c6
ninjabackend: remove some rust-related mypy errors
bonzini May 8, 2026
4c103a3
ninjabackend: do not use hasattr
bonzini May 8, 2026
20d05f4
ninjabackend: refine covariance
bonzini May 8, 2026
903bec1
ninjabackend: replace concatenation with unpacking
bonzini May 8, 2026
f17ccab
backends: fix annotation for generate_unity_files
bonzini May 8, 2026
aa34270
backends: make extra_bdeps type consistent with determine_windows_ext…
bonzini May 8, 2026
f784842
ninjabackend: fix type of generate_java_compile
bonzini May 8, 2026
a5d9cdd
ninjabackend: fix types for split_vala_sources
bonzini May 8, 2026
9335b5b
ninjabackend: fix type of get_import_std_object
bonzini May 8, 2026
d98c7cc
ninjabackend: more compiler special casing
bonzini May 8, 2026
396ad47
ninjabackend: add some types to partially typed functions
bonzini May 8, 2026
41e46ea
ninjabackend: use CompilerArgs instead of List[str] for pch
bonzini May 8, 2026
175dda2
ninjabackend: add simple annotations
bonzini May 8, 2026
6b02e0d
ninjabackend: assert type of options
bonzini May 8, 2026
ceabb04
ninjabackend: another Compiler vs. StaticLinker check
bonzini May 8, 2026
86e7ba8
utils: genericize ProgressBarFallback
bonzini May 8, 2026
7568295
build, compilers: add some missing methods
bonzini May 8, 2026
397df84
ninjabackend: fix typing for rust editions
bonzini May 8, 2026
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
8 changes: 4 additions & 4 deletions mesonbuild/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TargetIntrospectionData(TypedDict):
# Languages that can mix with C or C++ but don't support unity builds yet
# because the syntax we use for unity builds is specific to C/++/ObjC/++.
# Assembly files cannot be unitified and neither can LLVM IR files
LANGS_CANT_UNITY = ('d', 'fortran', 'vala', 'rust')
LANGS_CANT_UNITY: T.FrozenSet[Language] = frozenset({'d', 'fortran', 'vala', 'rust'})

@dataclass(eq=False)
class RegenInfo:
Expand Down Expand Up @@ -435,7 +435,7 @@ def get_unity_source_file(self, target: build.BuildTargetTypes,
osrc = f'{target.name}-unity{number}.{suffix}'
return mesonlib.File.from_built_file(self.get_target_private_dir(target), osrc)

def generate_unity_files(self, target: build.BuildTarget, unity_src: str) -> T.List[mesonlib.File]:
def generate_unity_files(self, target: build.BuildTarget, unity_src: T.List[str]) -> T.List[mesonlib.File]:
abs_files: T.List[str] = []
result: T.List[mesonlib.File] = []
compsrcs = classify_unity_sources(target.compilers.values(), unity_src)
Expand Down Expand Up @@ -542,7 +542,7 @@ def determine_swift_dep_dirs(self, target: build.BuildTarget) -> T.List[str]:
def get_executable_serialisation(
self, cmd: T.Sequence[T.Union[programs.Program, build.BuildTargetTypes, File, str]],
workdir: T.Optional[str] = None,
extra_bdeps: T.Optional[T.List[build.BuildTarget]] = None,
extra_bdeps: T.Optional[T.Sequence[build.BuildTargetTypes]] = None,
capture: T.Optional[str] = None,
feed: T.Optional[str] = None,
env: T.Optional[mesonlib.EnvironmentVariables] = None,
Expand Down Expand Up @@ -632,7 +632,7 @@ def get_executable_serialisation(
def as_meson_exe_cmdline(self, exe: T.Union[str, mesonlib.File, build.BuildTargetTypes, programs.Program],
cmd_args: T.Sequence[T.Union[str, mesonlib.File, build.BuildTargetTypes, programs.Program]],
workdir: T.Optional[str] = None,
extra_bdeps: T.Optional[T.List[build.BuildTarget]] = None,
extra_bdeps: T.Optional[T.Sequence[build.BuildTargetTypes]] = None,
capture: T.Optional[str] = None,
feed: T.Optional[str] = None,
force_serialize: bool = False,
Expand Down
Loading
Loading