File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,8 @@ def build_sdl():
119
119
elif os .path .exists (os .path .join (dst , 'libSDL2.a' )):
120
120
return
121
121
122
- cwd = os .getcwd ()
123
- os .chdir (dst )
124
122
cmd_ = [
123
+ f'cd { dst } '
125
124
f'cmake -DSDL_STATIC=ON -DSDL_SHARED=OFF -DCMAKE_BUILD_TYPE=Release { SCRIPT_PATH } /lib/SDL &&'
126
125
f'cmake --build . --config Release --parallel { os .cpu_count ()} '
127
126
]
@@ -130,8 +129,6 @@ def build_sdl():
130
129
if res != 0 :
131
130
sys .exit (res )
132
131
133
- os .chdir (cwd )
134
-
135
132
136
133
def submodules ():
137
134
if not os .path .exists ('lib/SDL/include' ):
@@ -145,7 +142,7 @@ def submodules():
145
142
]
146
143
_run (cmd_ )
147
144
148
- cmd_ = ['cd lib/SDL && git checkout release-2.30.2' ]
145
+ cmd_ = ['cd lib/SDL && git checkout release-2.30.2' ]
149
146
_run (cmd_ )
150
147
151
148
return_code , _ = spawn (submodules_cmd )
@@ -224,7 +221,6 @@ def compile(): # NOQA
224
221
225
222
build_sdl ()
226
223
227
- os .environ ['CC' ] = 'gcc'
228
224
return_code , _ = spawn (compile_cmd )
229
225
if return_code != 0 :
230
226
sys .exit (return_code )
You can’t perform that action at this time.
0 commit comments