Skip to content

Commit

Permalink
interpreter: Say 'build' machine when adding languages for is_build_only
Browse files Browse the repository at this point in the history
Even if it's the host machine from the perspective of the subproject,
it looks confusing when a dependency lookup a few lines down refers to
the build machine.
  • Loading branch information
oleavr committed Mar 18, 2024
1 parent d8096b1 commit aedeead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ def add_languages_for(self, args: T.List[str], required: bool, for_machine: Mach
for lang in sorted(args, key=compilers.sort_clink):
if lang in self.compilers[for_machine]:
continue
machine_name = for_machine.get_lower_case_name()
machine_name = 'build' if self.coredata.is_build_only else for_machine.get_lower_case_name()
comp = self.coredata.compilers[for_machine].get(lang)
if not comp:
try:
Expand Down

0 comments on commit aedeead

Please sign in to comment.