diff options
author | Sergey Minakov <naithar@icloud.com> | 2021-02-03 22:17:12 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2021-02-03 22:17:12 +0300 |
commit | b5d16b4b56377bc2d9303ac13fc858dd5f5caed9 (patch) | |
tree | 68916f2e9a10ebb6a1ce891ca32067a34e96c822 | |
parent | 6d3b8f44f415657b33476488ba0b2042d30de3c0 (diff) | |
download | redot-cpp-b5d16b4b56377bc2d9303ac13fc858dd5f5caed9.tar.gz |
add ios_simulator flag to enable building for M1 arm64 simulators
-rw-r--r-- | SConstruct | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -145,6 +145,11 @@ opts.Add(EnumVariable( 'arm64', ['armv7', 'arm64', 'x86_64'] )) +opts.Add(BoolVariable( + 'ios_simulator', + 'Target iOS Simulator', + False +)) opts.Add( 'IPHONEPATH', 'Path to iPhone toolchain', @@ -227,9 +232,10 @@ elif env['platform'] == 'osx': env.Append(CCFLAGS=['-O3']) elif env['platform'] == 'ios': - if env['ios_arch'] == 'x86_64': + if env['ios_simulator']: sdk_name = 'iphonesimulator' env.Append(CCFLAGS=['-mios-simulator-version-min=10.0']) + env['LIBSUFFIX'] = ".simulator" + env['LIBSUFFIX'] else: sdk_name = 'iphoneos' env.Append(CCFLAGS=['-miphoneos-version-min=10.0']) |