Fix swift breakage caused by distutils migration.

pull/358/head
Jussi Pakkanen 9 years ago
parent a5528249ad
commit 6d2b227dc1
  1. 4
      mesonbuild/ninjabackend.py

@ -1161,7 +1161,9 @@ int dummy;
def generate_swift_compile_rules(self, compiler, outfile): def generate_swift_compile_rules(self, compiler, outfile):
rule = 'rule %s_COMPILER\n' % compiler.get_language() rule = 'rule %s_COMPILER\n' % compiler.get_language()
full_exe = [sys.executable, full_exe = [sys.executable,
os.path.join(self.environment.get_script_dir(), 'dirchanger.py'), self.environment.get_build_command(),
'--internal',
'dirchanger',
'$RUNDIR'] + compiler.get_exelist() '$RUNDIR'] + compiler.get_exelist()
invoc = ' '.join([ninja_quote(i) for i in full_exe]) invoc = ' '.join([ninja_quote(i) for i in full_exe])
command = ' command = %s $ARGS $in\n' % invoc command = ' command = %s $ARGS $in\n' % invoc

Loading…
Cancel
Save