mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 21:01:59 +00:00
build script: build native platform first
This commit is contained in:
parent
6da02a3890
commit
733c81ff0e
1 changed files with 13 additions and 0 deletions
13
build.py
13
build.py
|
@ -1747,6 +1747,19 @@ class Builder(object):
|
||||||
platform = TargetPlatform('arm64', 'aarch64-apple-darwin', os_version, sdk_path, self.prefix_path)
|
platform = TargetPlatform('arm64', 'aarch64-apple-darwin', os_version, sdk_path, self.prefix_path)
|
||||||
self._platforms.append(platform)
|
self._platforms.append(platform)
|
||||||
|
|
||||||
|
assert len(self._platforms) > 0
|
||||||
|
|
||||||
|
# Put native platform first in the list of platforms
|
||||||
|
if self._platforms[0].architecture == machine():
|
||||||
|
return
|
||||||
|
|
||||||
|
for platform in self._platforms:
|
||||||
|
if platform.architecture == machine():
|
||||||
|
native_platform = platform
|
||||||
|
self._platforms.remove(platform)
|
||||||
|
self._platforms.insert(0, native_platform)
|
||||||
|
break
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self._create_prefix_directory()
|
self._create_prefix_directory()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue