Skip to content

Commit e382b50

Browse files
committed
Add comments about the proper use of specific ARMC6 arguments
1 parent 6e629de commit e382b50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/toolchains/arm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def __init__(self, target, notify=None, macros=None,
109109

110110
def version_check(self):
111111
# The --ide=mbed removes an instability with checking the version of
112-
# the ARMC6 binary that comes with Mbed Studio
112+
# the ARMC6 binary that comes with Mbed Studio.
113+
# NOTE: the --ide=mbed argument is only for use with Mbed OS
113114
stdout, _, retcode = run_cmd(
114115
[self.cc[0], "--vsn", "--ide=mbed"],
115116
redirect=True
@@ -624,6 +625,7 @@ def get_compile_options(self, defines, includes, for_asm=False):
624625
]
625626

626627
if self.is_mbed_studio_armc6:
628+
# NOTE: the --ide=mbed argument is only for use with Mbed OS
627629
opts.insert(0, "--ide=mbed")
628630

629631
return opts
@@ -647,6 +649,7 @@ def get_link_command(self, output, objects, libraries, lib_dirs, scatter_file):
647649
)
648650

649651
if self.is_mbed_studio_armc6:
652+
# NOTE: the --ide=mbed argument is only for use with Mbed OS
650653
cmd.insert(1, "--ide=mbed")
651654

652655
return cmd
@@ -655,6 +658,7 @@ def get_binary_commands(self, bin_arg, bin, elf):
655658
cmd = ARM.get_binary_commands(self, bin_arg, bin, elf)
656659

657660
if self.is_mbed_studio_armc6:
661+
# NOTE: the --ide=mbed argument is only for use with Mbed OS
658662
cmd.insert(1, "--ide=mbed")
659663

660664
return cmd

0 commit comments

Comments
 (0)