Skip to content

Commit 8148329

Browse files
authored
Merge pull request #4749 from 0xc0170/fix_inc_paths
tools: fix toolchain extend inc paths
2 parents aae62bd + 441fda9 commit 8148329

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,10 @@ def compile_sources(self, resources, inc_dirs=None):
863863

864864
inc_paths = resources.inc_dirs
865865
if inc_dirs is not None:
866-
inc_paths.extend(inc_dirs)
866+
if isinstance(inc_dirs, list):
867+
inc_paths.extend(inc_dirs)
868+
else:
869+
inc_paths.append(inc_dirs)
867870
# De-duplicate include paths
868871
inc_paths = set(inc_paths)
869872
# Sort include paths for consistency

0 commit comments

Comments
 (0)