Skip to content

Commit 9d343a5

Browse files
Fix building on AIX when no project languages are used
Closes #13878
1 parent f0851c9 commit 9d343a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/backend/ninjabackend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ def generate_dynamic_link_rules(self) -> None:
23692369

23702370
options = self._rsp_options(compiler)
23712371
self.add_rule(NinjaRule(rule, command, args, description, **options, extra=pool))
2372-
if self.environment.machines[for_machine].is_aix():
2372+
if self.environment.machines[for_machine].is_aix() and complist:
23732373
rule = 'AIX_LINKER{}'.format(self.get_rule_suffix(for_machine))
23742374
description = 'Archiving AIX shared library'
23752375
cmdlist = compiler.get_command_to_archive_shlib()

0 commit comments

Comments
 (0)