We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e00a22 + ddc9e08 commit e4d0e12Copy full SHA for e4d0e12
tools/toolchains/iar.py
@@ -145,15 +145,16 @@ def get_config_option(self, config_header):
145
146
def get_compile_options(self, defines, includes, for_asm=False):
147
opts = ['-D%s' % d for d in defines]
148
+ if for_asm :
149
+ return opts
150
if self.RESPONSE_FILES:
151
opts += ['-f', self.get_inc_file(includes)]
152
else:
153
opts += ["-I%s" % i for i in includes]
154
- if not for_asm:
- config_header = self.get_config_header()
155
- if config_header is not None:
156
- opts = opts + self.get_config_option(config_header)
+ config_header = self.get_config_header()
+ if config_header is not None:
157
+ opts = opts + self.get_config_option(config_header)
158
return opts
159
160
@hook_tool
0 commit comments