build script: configure cross-compilation of ninja

This commit is contained in:
alexey.lysiuk 2021-01-07 10:53:48 +02:00
parent 081ab62c46
commit 14e94616e4

View file

@ -1198,8 +1198,13 @@ class NinjaTarget(MakeTarget):
return os.path.exists(builder.source_path + 'src/ninja.cc')
def build(self, builder: 'Builder'):
args = ('python3', './configure.py', '--bootstrap', '--verbose')
subprocess.check_call(args, cwd=builder.build_path)
cmdlines = (
('python3', './configure.py', '--verbose'),
('ninja', '--verbose'),
)
for args in cmdlines:
subprocess.run(args, check=True, cwd=builder.build_path, env=self.environment)
def post_build(self, builder: 'Builder'):
self.copy_to_bin(builder)