Add config header to assembly compilation

ARMC6 was not including mbed_config.h when compiling assembly files
pull/9765/head
Oren Cohen 2019-02-19 20:45:36 +02:00 committed by Oren Cohen
parent 400fd82972
commit 156bdc4b95
No known key found for this signature in database
GPG Key ID: 6F54A3184C6F8FF9
1 changed files with 4 additions and 5 deletions

View File

@ -473,13 +473,12 @@ class ARMC6(ARM_STD):
def get_compile_options(self, defines, includes, for_asm=False):
opts = ['-D%s' % d for d in defines]
opts.extend(["-I%s" % i for i in includes if i])
if for_asm:
return ["--cpreproc",
"--cpreproc_opts=%s" % ",".join(self.flags['common'] + opts)]
else:
config_header = self.get_config_header()
if config_header:
opts.extend(self.get_config_option(config_header))
if for_asm:
return ["--cpreproc",
"--cpreproc_opts=%s" % ",".join(self.flags['common'] + opts)]
return opts
@hook_tool