mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Run the xcodebuild command only we actually use iOSTargetInfo.
This commit is contained in:
@ -238,8 +238,14 @@ class iOSTargetInfo(TargetInfo):
|
|||||||
hosts=['Darwin'])
|
hosts=['Darwin'])
|
||||||
self.arch = arch
|
self.arch = arch
|
||||||
self.arch_full, self.cpu, self.sdk_name = self.__arch_infos[arch]
|
self.arch_full, self.cpu, self.sdk_name = self.__arch_infos[arch]
|
||||||
command = "xcodebuild -version -sdk {} | grep -E '^Path' | sed 's/Path: //'".format(self.sdk_name)
|
self._root_path = None
|
||||||
self.root_path = subprocess.check_output(command, shell=True)[:-1].decode()
|
|
||||||
|
@property
|
||||||
|
def root_path(self):
|
||||||
|
if self._root_path is None:
|
||||||
|
command = "xcodebuild -version -sdk {} | grep -E '^Path' | sed 's/Path: //'".format(self.sdk_name)
|
||||||
|
self._root_path = subprocess.check_output(command, shell=True)[:-1].decode()
|
||||||
|
return self._root_path
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "iOS"
|
return "iOS"
|
||||||
|
Reference in New Issue
Block a user