Undelete defines from IAR

pull/1975/head
Jimmy Brisson 2016-06-27 14:36:35 -05:00
parent 7b83c30ba1
commit 8e11fa2071
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class IAR(mbedToolchain):
return ['--preinclude=' + config_header]
def get_compile_options(self, defines, includes, for_asm=False):
opts = ['-f', self.get_inc_file(includes)]
opts = ['-D%s' % d for d in defines] + ['-f', self.get_inc_file(includes)]
config_header = self.get_config_header()
if for_asm:
# The assembler doesn't support '--preinclude', so we need to add