@@ -20,7 +20,7 @@ env = DefaultEnvironment()
20
20
21
21
# Define our options
22
22
opts .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' ]))
24
24
opts .Add (BoolVariable ('simulator' , "Compilation platform" , 'no' ))
25
25
opts .Add (BoolVariable ('use_llvm' , "Use the LLVM / Clang compiler" , 'no' ))
26
26
opts .Add (PathVariable ('target_path' , 'The path where the lib is installed.' , 'bin/' ))
@@ -60,12 +60,12 @@ env.Append(CCFLAGS=["-fmodules", "-fcxx-modules"])
60
60
61
61
if env ['simulator' ]:
62
62
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" ])
65
65
else :
66
66
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" ])
69
69
70
70
try :
71
71
sdk_path = decode_utf8 (subprocess .check_output (['xcrun' , '--sdk' , sdk_name , '--show-sdk-path' ]).strip ())
@@ -90,9 +90,6 @@ env.Prepend(CXXFLAGS=[
90
90
])
91
91
env .Append (LINKFLAGS = ["-arch" , env ['arch' ], '-isysroot' , sdk_path , '-F' + sdk_path ])
92
92
93
- if env ['arch' ] == 'armv7' :
94
- env .Prepend (CXXFLAGS = ['-fno-aligned-allocation' ])
95
-
96
93
if env ['version' ] == '3.x' :
97
94
env .Prepend (CFLAGS = ['-std=gnu11' ])
98
95
env .Prepend (CXXFLAGS = ['-DGLES_ENABLED' , '-std=gnu++14' ])
@@ -110,17 +107,15 @@ if env['version'] == '3.x':
110
107
'-DPTRCALL_ENABLED' ,
111
108
])
112
109
113
- if env ['arch' ] != 'armv7' :
114
- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
110
+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
115
111
else :
116
112
env .Prepend (CXXFLAGS = [
117
113
'-O2' , '-ftree-vectorize' ,
118
114
'-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' ,
119
115
'-DPTRCALL_ENABLED' ,
120
116
])
121
117
122
- if env ['arch' ] != 'armv7' :
123
- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
118
+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
124
119
elif env ['version' ] == '4.0' :
125
120
env .Prepend (CFLAGS = ['-std=gnu11' ])
126
121
env .Prepend (CXXFLAGS = ['-DVULKAN_ENABLED' , '-std=gnu++17' ])
@@ -137,16 +132,14 @@ elif env['version'] == '4.0':
137
132
'-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' , '-DDEBUG_ENABLED' ,
138
133
])
139
134
140
- if env ['arch' ] != 'armv7' :
141
- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
135
+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
142
136
else :
143
137
env .Prepend (CXXFLAGS = [
144
138
'-O2' , '-ftree-vectorize' ,
145
139
'-DNDEBUG' , '-DNS_BLOCK_ASSERTIONS=1' ,
146
140
])
147
141
148
- if env ['arch' ] != 'armv7' :
149
- env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
142
+ env .Prepend (CXXFLAGS = ['-fomit-frame-pointer' ])
150
143
else :
151
144
print ("No valid version to set flags for." )
152
145
quit ();
0 commit comments