load_usermods: Enforce CPPPATH type

Ensure that entries put in CPPPATH are always strings so SCons can
correctlly deduplicate.
This commit is contained in:
Will Miles 2025-04-30 21:56:56 -04:00
parent 7998650e60
commit 6464c620c7

View File

@ -108,10 +108,10 @@ def wrapped_ConfigureProjectLibBuilder(xenv):
for dep in result.depbuilders: for dep in result.depbuilders:
if is_wled_module(dep): if is_wled_module(dep):
# Add the wled folder to the include path # Add the wled folder to the include path
dep.env.PrependUnique(CPPPATH=wled_dir) dep.env.PrependUnique(CPPPATH=str(wled_dir))
# Add WLED's own dependencies # Add WLED's own dependencies
for dir in extra_include_dirs: for dir in extra_include_dirs:
dep.env.PrependUnique(CPPPATH=dir) dep.env.PrependUnique(CPPPATH=str(dir))
# Enforce that libArchive is not set; we must link them directly to the executable # Enforce that libArchive is not set; we must link them directly to the executable
if dep.lib_archive: if dep.lib_archive:
build = dep._manifest.get("build", {}) build = dep._manifest.get("build", {})