mirror of https://github.com/ARMmbed/mbed-os.git
disable -f option for assembly files for IAR
parent
3e00a22d78
commit
ddc9e0840a
|
@ -145,15 +145,16 @@ class IAR(mbedToolchain):
|
||||||
|
|
||||||
def get_compile_options(self, defines, includes, for_asm=False):
|
def get_compile_options(self, defines, includes, for_asm=False):
|
||||||
opts = ['-D%s' % d for d in defines]
|
opts = ['-D%s' % d for d in defines]
|
||||||
|
if for_asm :
|
||||||
|
return opts
|
||||||
if self.RESPONSE_FILES:
|
if self.RESPONSE_FILES:
|
||||||
opts += ['-f', self.get_inc_file(includes)]
|
opts += ['-f', self.get_inc_file(includes)]
|
||||||
else:
|
else:
|
||||||
opts += ["-I%s" % i for i in includes]
|
opts += ["-I%s" % i for i in includes]
|
||||||
|
|
||||||
if not for_asm:
|
config_header = self.get_config_header()
|
||||||
config_header = self.get_config_header()
|
if config_header is not None:
|
||||||
if config_header is not None:
|
opts = opts + self.get_config_option(config_header)
|
||||||
opts = opts + self.get_config_option(config_header)
|
|
||||||
return opts
|
return opts
|
||||||
|
|
||||||
@hook_tool
|
@hook_tool
|
||||||
|
|
Loading…
Reference in New Issue