diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-25 14:48:55 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-25 16:01:13 +0100 |
commit | f2d887b047bad0a3cbc297a8500a05d7fb38eac1 (patch) | |
tree | 480bf1f9cc933d9a3aa836f4abe2907827c5d4d9 /config/ios.config | |
parent | 9eb872a03674469e8c74d5843ec1f9e16188598d (diff) |
ios: detect ios platform based on the target architecture
Diffstat (limited to 'config/ios.config')
-rw-r--r-- | config/ios.config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/ios.config b/config/ios.config index 9bbc496..cc2e507 100644 --- a/config/ios.config +++ b/config/ios.config @@ -20,6 +20,12 @@ elif target_distro_version == DistroVersion.IOS_6_1: else: raise FatalError("Distro version %s not supported" %(target_distro_version)) +if not ios_platform: + if target_arch == Architecture.X86: + ios_platform = 'iPhoneSimulator' + else: + ios_platform = 'iPhoneOS' + # For Xcode >= 4.3, the SDK is installed in a completely different path # FIXME This has not been tested, we should check what is the iOS toolchain path # for xcode 4.3 |