Skip to content

Commit 7c5df48

Browse files
committed
Add -D support for compile --tests (issue #128)
1 parent bee3187 commit 7c5df48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbed/mbed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
16701670
build = os.path.join(os.path.relpath(program.path, orig_path), '.build/tests', target, tchain)
16711671

16721672
popen(['python', os.path.join(tools_dir, 'test.py')]
1673+
+ list(chain.from_iterable(izip(repeat('-D'), macros)))
16731674
+ ['-t', tchain, '-m', target]
16741675
+ list(chain.from_iterable(izip(repeat('--source'), source)))
16751676
+ ['--build', build]

0 commit comments

Comments
 (0)