From 8e11fa2071ed9263aeb119a80a0d6a23496122e6 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 27 Jun 2016 14:36:35 -0500 Subject: [PATCH] Undelete defines from IAR --- tools/toolchains/iar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchains/iar.py b/tools/toolchains/iar.py index d7ab5018c3..93407798af 100644 --- a/tools/toolchains/iar.py +++ b/tools/toolchains/iar.py @@ -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