Skip to content

Commit 571caad

Browse files
authored
Merge pull request #10539 from bridadan/fix_armc6_mbed_studio
Add mbed studio flag during assembly
2 parents 548a40e + fb62ed6 commit 571caad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/toolchains/arm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ def assemble(self, source, object, includes):
681681

682682
# Build main assemble command
683683
cmd = self.asm + ["-o", object, tempfile]
684+
if self.is_mbed_studio_armc6:
685+
# NOTE: the --ide=mbed argument is only for use with Mbed OS
686+
cmd.insert(1, "--ide=mbed")
684687

685688
# Return command array, don't execute
686689
return [cmd_pre, cmd]

0 commit comments

Comments
 (0)