build script: call configure script in configure() method instead of build()

This commit is contained in:
alexey.lysiuk 2020-12-06 12:13:12 +02:00
parent 9774e56044
commit a1b5db3172

View file

@ -166,14 +166,13 @@ class ConfigureMakeTarget(Target):
super().configure(builder)
self.make.configure(builder)
def build(self, builder: 'Builder'):
assert not builder.xcode
work_path = builder.build_path + self.src_root
args = [work_path + os.sep + 'configure']
args += self.options.to_list()
subprocess.check_call(args, cwd=work_path, env=self.environment)
def build(self, builder: 'Builder'):
assert not builder.xcode
self.make.build(builder)