mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 21:31:25 +00:00
build script: disable dependency tracking if supported
This commit is contained in:
parent
29bd0b7f72
commit
e90852ca2d
1 changed files with 11 additions and 1 deletions
12
build.py
12
build.py
|
@ -272,8 +272,18 @@ class ConfigureMakeTarget(Target):
|
|||
self.make.configure(builder)
|
||||
|
||||
work_path = builder.build_path + self.src_root
|
||||
args = [work_path + os.sep + 'configure']
|
||||
configure_path = work_path + os.sep + 'configure'
|
||||
|
||||
args = [configure_path]
|
||||
args += self.options.to_list()
|
||||
|
||||
# Detect dependency tracking support, and disable it
|
||||
with open(configure_path) as f:
|
||||
for line in f.readlines():
|
||||
if 'dependency_tracking' in line:
|
||||
args.append('--disable-dependency-tracking')
|
||||
break
|
||||
|
||||
subprocess.check_call(args, cwd=work_path, env=self.environment)
|
||||
|
||||
def build(self, builder: 'Builder'):
|
||||
|
|
Loading…
Reference in a new issue