disable -f option for assembly files for IAR

pull/4977/head
Shrikant Tudavekar 2017-08-25 16:59:21 -05:00
parent 3e00a22d78
commit ddc9e0840a
1 changed files with 5 additions and 4 deletions

View File

@ -145,15 +145,16 @@ class IAR(mbedToolchain):
def get_compile_options(self, defines, includes, for_asm=False):
opts = ['-D%s' % d for d in defines]
if for_asm :
return opts
if self.RESPONSE_FILES:
opts += ['-f', self.get_inc_file(includes)]
else:
opts += ["-I%s" % i for i in includes]
if not for_asm:
config_header = self.get_config_header()
if config_header is not None:
opts = opts + self.get_config_option(config_header)
config_header = self.get_config_header()
if config_header is not None:
opts = opts + self.get_config_option(config_header)
return opts
@hook_tool