1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 06:46:42 +00:00

🔨 Fix thread-unsafe deque iteration

This commit is contained in:
Scott Lahteine 2023-03-26 17:49:51 -05:00
parent 41593c4d1a
commit e7186fc33e

View File

@ -16,7 +16,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
shutil.copy2(item, dst / item.name) shutil.copy2(item, dst / item.name)
def replace_define(field, value): def replace_define(field, value):
for define in env['CPPDEFINES']: envdefs = env['CPPDEFINES'].copy()
for define in envdefs:
if define[0] == field: if define[0] == field:
env['CPPDEFINES'].remove(define) env['CPPDEFINES'].remove(define)
env['CPPDEFINES'].append((field, value)) env['CPPDEFINES'].append((field, value))