xcodebackend: Fix iterating compilers after host/build changes

Fixes #5570
This commit is contained in:
Dylan Baker 2019-06-27 10:14:48 -07:00 committed by Jussi Pakkanen
parent 3f280a81fd
commit 866d105036
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ class XCodeBackend(backends.Backend):
ldstr = ' '.join(ldargs)
valid = self.buildconfmap[target_name][buildtype]
langargs = {}
for lang in self.environment.coredata.compilers:
for lang in self.environment.coredata.compilers[target.for_machine]:
if lang not in langnamemap:
continue
# Add compile args added using add_project_arguments()