Fix building on AIX when no project languages are used

Closes #13878
pull/12190/merge
prajwal-ibm 3 weeks ago committed by Eli Schwartz
parent 110e2de4fa
commit 8400083418
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -2369,7 +2369,7 @@ class NinjaBackend(backends.Backend):
options = self._rsp_options(compiler)
self.add_rule(NinjaRule(rule, command, args, description, **options, extra=pool))
if self.environment.machines[for_machine].is_aix():
if self.environment.machines[for_machine].is_aix() and complist:
rule = 'AIX_LINKER{}'.format(self.get_rule_suffix(for_machine))
description = 'Archiving AIX shared library'
cmdlist = compiler.get_command_to_archive_shlib()

Loading…
Cancel
Save