@@ -20,7 +20,7 @@ env = DefaultEnvironment()
2020
2121# Define our options
2222opts .Add (EnumVariable ('target' , "Compilation target" , 'debug' , ['debug' , 'release' , "release_debug" ]))
23- opts .Add (EnumVariable ('arch' , "Compilation Architecture" , '' , ['' , 'arm64' , 'armv7' , ' x86_64' ]))
23+ opts .Add (EnumVariable ('arch' , "Compilation Architecture" , '' , ['' , 'arm64' , 'x86_64' ]))
2424opts .Add (BoolVariable ('simulator' , "Compilation platform" , 'no' ))
2525opts .Add (BoolVariable ('use_llvm' , "Use the LLVM / Clang compiler" , 'no' ))
2626opts .Add (PathVariable ('target_path' , 'The path where the lib is installed.' , 'bin/' ))
@@ -60,12 +60,12 @@ env.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
6060
6161if env ['simulator' ]:
6262 sdk_name = 'iphonesimulator'
63- env .Append (CCFLAGS = ['-mios-simulator-version-min=10 .0' ])
64- env .Append (LINKFLAGS = ["-mios-simulator-version-min=10 .0" ])
63+ env .Append (CCFLAGS = ['-mios-simulator-version-min=12 .0' ])
64+ env .Append (LINKFLAGS = ["-mios-simulator-version-min=12 .0" ])
6565else :
6666 sdk_name = 'iphoneos'
67- env .Append (CCFLAGS = ['-miphoneos-version-min=10 .0' ])
68- env .Append (LINKFLAGS = ["-miphoneos-version-min=10 .0" ])
67+ env .Append (CCFLAGS = ['-miphoneos-version-min=12 .0' ])
68+ env .Append (LINKFLAGS = ["-miphoneos-version-min=12 .0" ])
6969
7070try :
7171 sdk_path = decode_utf8 (subprocess .check_output (['xcrun' , '--sdk' , sdk_name , '--show-sdk-path' ]).strip ())
@@ -90,9 +90,6 @@ env.Prepend(CXXFLAGS=[
9090])
9191env .Append (LINKFLAGS = ["-arch" , env ['arch' ], '-isysroot' , sdk_path , '-F' + sdk_path ])
9292
93- if env ['arch' ] == 'armv7' :
94- env .Prepend (CXXFLAGS = ['-fno-aligned-allocation' ])
95-
9693if env ['version' ] == '3.x' :
9794 env .Prepend (CFLAGS = ['-std=gnu11' ])
9895 env .Prepend (CXXFLAGS = ['-DGLES_ENABLED' , '-std=gnu++14' ])
@@ -110,17 +107,15 @@ if env['version'] == '3.x':
110107 '-DPTRCALL_ENABLED' ,
111108 ])
112109
113- if env ['arch' ] != 'armv7' :
114- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
110+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
115111 else :
116112 env .Prepend (CXXFLAGS = [
117113 '-O2' , '-ftree-vectorize' ,
118114 '-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' ,
119115 '-DPTRCALL_ENABLED' ,
120116 ])
121117
122- if env ['arch' ] != 'armv7' :
123- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
118+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
124119elif env ['version' ] == '4.0' :
125120 env .Prepend (CFLAGS = ['-std=gnu11' ])
126121 env .Prepend (CXXFLAGS = ['-DVULKAN_ENABLED' , '-std=gnu++17' ])
@@ -137,16 +132,14 @@ elif env['version'] == '4.0':
137132 '-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' , '-DDEBUG_ENABLED' ,
138133 ])
139134
140- if env ['arch' ] != 'armv7' :
141- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
135+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
142136 else :
143137 env .Prepend (CXXFLAGS = [
144138 '-O2' , '-ftree-vectorize' ,
145139 '-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' ,
146140 ])
147141
148- if env ['arch' ] != 'armv7' :
149- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
142+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
150143else :
151144 print ("No valid version to set flags for." )
152145 quit ();
0 commit comments