Skip to content

Commit 0a12360

Browse files
authored
Merge pull request #190 from screamerbg/development
Fixed missing -c flag for when compiling
2 parents f2b53d3 + 31805a6 commit 0a12360

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mbed/mbed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, clean=False, su
17681768
popen(['python', '-u', os.path.join(tools_dir, 'build.py')]
17691769
+ list(chain.from_iterable(izip(repeat('-D'), macros)))
17701770
+ ['-t', tchain, '-m', target]
1771+
+ (['-c'] if clean else [])
17711772
+ list(chain.from_iterable(izip(repeat('--source'), source)))
17721773
+ ['--build', build]
17731774
+ (['-v'] if verbose else [])
@@ -1781,6 +1782,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, clean=False, su
17811782
popen(['python', '-u', os.path.join(tools_dir, 'make.py')]
17821783
+ list(chain.from_iterable(izip(repeat('-D'), macros)))
17831784
+ ['-t', tchain, '-m', target]
1785+
+ (['-c'] if clean else [])
17841786
+ list(chain.from_iterable(izip(repeat('--source'), source)))
17851787
+ ['--build', build]
17861788
+ (['-v'] if verbose else [])

0 commit comments

Comments
 (0)