Skip to content

Commit 6464c62

Browse files
committed
load_usermods: Enforce CPPPATH type
Ensure that entries put in CPPPATH are always strings so SCons can correctlly deduplicate.
1 parent 7998650 commit 6464c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pio-scripts/load_usermods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def wrapped_ConfigureProjectLibBuilder(xenv):
108108
for dep in result.depbuilders:
109109
if is_wled_module(dep):
110110
# Add the wled folder to the include path
111-
dep.env.PrependUnique(CPPPATH=wled_dir)
111+
dep.env.PrependUnique(CPPPATH=str(wled_dir))
112112
# Add WLED's own dependencies
113113
for dir in extra_include_dirs:
114-
dep.env.PrependUnique(CPPPATH=dir)
114+
dep.env.PrependUnique(CPPPATH=str(dir))
115115
# Enforce that libArchive is not set; we must link them directly to the executable
116116
if dep.lib_archive:
117117
build = dep._manifest.get("build", {})

0 commit comments

Comments
 (0)