environment: Fix syntax error

pull/5339/head
Dylan Baker 6 years ago
parent da5f07cf39
commit 604b2534e8
  1. 5
      mesonbuild/environment.py

@ -1055,8 +1055,9 @@ class Environment:
# up to date language version at time (2016). # up to date language version at time (2016).
if exelist is not None: if exelist is not None:
if os.path.basename(exelist[-1]).startswith(('ldmd', 'gdmd')): if os.path.basename(exelist[-1]).startswith(('ldmd', 'gdmd')):
raise EnvironmentException('Meson does not support {} as it is only a DMD frontend for another compiler.'.format(exelist[-1]) raise EnvironmentException(
'Please provide a valid value for DC or unset it so that Meson can resolve the compiler by itself.') 'Meson does not support {} as it is only a DMD frontend for another compiler.'
'Please provide a valid value for DC or unset it so that Meson can resolve the compiler by itself.'.format(exelist[-1]))
else: else:
for d in self.default_d: for d in self.default_d:
if shutil.which(d): if shutil.which(d):

Loading…
Cancel
Save