mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 13:21:05 +00:00
build script: store native build path during multi-platform build
This commit is contained in:
parent
7ea4611887
commit
6da02a3890
1 changed files with 4 additions and 0 deletions
4
build.py
4
build.py
|
@ -1720,6 +1720,7 @@ class Builder(object):
|
||||||
|
|
||||||
self.source_path += os.sep
|
self.source_path += os.sep
|
||||||
self.build_path += os.sep
|
self.build_path += os.sep
|
||||||
|
self.native_build_path = self.build_path
|
||||||
|
|
||||||
self.jobs = arguments.jobs and arguments.jobs or \
|
self.jobs = arguments.jobs and arguments.jobs or \
|
||||||
subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip()
|
subprocess.check_output(['sysctl', '-n', 'hw.ncpu']).decode('ascii').strip()
|
||||||
|
@ -1772,6 +1773,9 @@ class Builder(object):
|
||||||
self.platform = platform
|
self.platform = platform
|
||||||
self.build_path = base_build_path + 'build_' + platform.architecture + os.sep
|
self.build_path = base_build_path + 'build_' + platform.architecture + os.sep
|
||||||
|
|
||||||
|
if platform.architecture == machine():
|
||||||
|
self.native_build_path = self.build_path
|
||||||
|
|
||||||
target = copy.deepcopy(base_target)
|
target = copy.deepcopy(base_target)
|
||||||
target.prefix = base_build_path + 'install_' + platform.architecture + os.sep
|
target.prefix = base_build_path + 'install_' + platform.architecture + os.sep
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue