Skip to content

Commit 0b59348

Browse files
committed
Merge pull request #5 from 0xc0170/fix_project
Tools - project options.macros None fix
2 parents 4ae6b05 + a058ab9 commit 0b59348

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/project.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@
145145
project_dir = options.source_dir
146146
project_name = basename(project_dir)
147147
project_temp = project_dir
148-
lib_symbols = [] + options.macros
148+
lib_symbols = []
149+
if options.macros:
150+
lib_symbols += options.macros
149151
zip = False # don't create zip
150152
clean = False # don't cleanup because we use the actual source tree to generate IDE files
151153
else:
@@ -179,7 +181,9 @@
179181
# Some libraries have extra macros (called by exporter symbols) to we need to pass
180182
# them to maintain compilation macros integrity between compiled library and
181183
# header files we might use with it
182-
lib_symbols = [] + options.macros
184+
lib_symbols = []
185+
if options.macros:
186+
lib_symbols += options.macros
183187
for lib in LIBRARIES:
184188
if lib['build_dir'] in test.dependencies:
185189
lib_macros = lib.get('macros', None)

0 commit comments

Comments
 (0)