File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -207,18 +207,17 @@ def compile(): # NOQA
207
207
with open (mpconfigvariant_common_path , 'w' ) as f :
208
208
f .write (mpconfigvariant_common )
209
209
210
- # for makefile_path in (
211
- # 'lib/micropython/ports/unix/Makefile',
212
- # 'lib/micropython/py/dynruntime.mk'
213
- # ):
214
- #
215
- # with open(makefile_path, 'rb') as f:
216
- # data = f.read().decode('utf-8')
217
- #
218
- # data = data.replace('-Werror', '')
219
- #
220
- # with open(makefile_path, 'wb') as f:
221
- # f.write(data.encode('utf-8'))
210
+ for makefile_path in (
211
+ 'lib/micropython/ports/unix/Makefile' ,
212
+ 'lib/micropython/py/mkrules.mk'
213
+ ):
214
+ with open (makefile_path , 'rb' ) as f :
215
+ data = f .read ().decode ('utf-8' )
216
+
217
+ data = data .replace ('QSTR_GEN_CFLAGS := $(CFLAGS)' , 'QSTR_GEN_CFLAGS = $(CFLAGS)' )
218
+
219
+ with open (makefile_path , 'wb' ) as f :
220
+ f .write (data .encode ('utf-8' ))
222
221
223
222
build_sdl ()
224
223
You can’t perform that action at this time.
0 commit comments