Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for "buildroot\share\PlatformIO\scripts\marlin.py" #347

Merged
merged 8 commits into from Mar 7, 2024
Next Next commit
Update marlin.py to fix compile error
Replaces:
    for define in env['CPPDEFINES']:

with:
    envdefs = env['CPPDEFINES'].copy()
    for define in envdefs:

in buildroot\share\PlatformIO\scripts\marlin.py
on extui branch
TBArchives authored Mar 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2d878866d60a6036457a7762806872e889088615
3 changes: 2 additions & 1 deletion buildroot/share/PlatformIO/scripts/marlin.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
shutil.copy2(s, d)

def replace_define(field, value):
for define in env['CPPDEFINES']:
envdefs = env['CPPDEFINES'].copy()
for define in envdefs:
if define[0] == field:
env['CPPDEFINES'].remove(define)
env['CPPDEFINES'].append((field, value))