Skip to content

Commit 1e73f08

Browse files
committed
Fixed issue with compilation related to other platforms. None object was iterable.
1 parent 1d5b915 commit 1e73f08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

workspace_tools/build_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ def build_library(src_paths, build_path, target, toolchain_name,
125125
resources = []
126126
for src_path in src_paths:
127127
resources.append(toolchain.scan_resources(src_path))
128+
128129
# Add extra include directories / files which are required by library
129130
# This files usually are not in the same directory as source files so
130131
# previous scan will not include them
131-
for inc_ext in inc_dirs_ext:
132-
resources.append(toolchain.scan_resources(inc_ext))
132+
if inc_dirs_ext is not None:
133+
for inc_ext in inc_dirs_ext:
134+
resources.append(toolchain.scan_resources(inc_ext))
133135

134136
# Dependencies Include Paths
135137
dependencies_include_dir = []

0 commit comments

Comments
 (0)