build script: store native build path during multi-platform build

This commit is contained in:
alexey.lysiuk 2020-12-28 11:08:14 +02:00
parent 7ea4611887
commit 6da02a3890

View file

@ -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