Skip to content

Commit 87d9354

Browse files
committed
Merge pull request #89 from amullins83/master
Added 'macros' keyword to build_api.py to allow building USB libraries Thanks! This is something I've neglected to do in one of my latest commits.
2 parents 6b6bc93 + 081453e commit 87d9354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workspace_tools/build_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ def build_library(src_paths, build_path, target, toolchain_name,
124124
toolchain.build_library(objects, bin_path, name)
125125

126126

127-
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False):
127+
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None):
128128
lib = Library(lib_id)
129129
if lib.is_supported(target, toolchain):
130130
build_library(lib.source_dir, lib.build_dir, target, toolchain,
131131
lib.dependencies, options,
132-
verbose=verbose, clean=clean)
132+
verbose=verbose, clean=clean, macros=macros)
133133
else:
134134
print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
135135

0 commit comments

Comments
 (0)