mirror of https://github.com/ARMmbed/mbed-os.git
Add config header to assembly compilation
ARMC6 was not including mbed_config.h when compiling assembly filespull/9765/head
parent
400fd82972
commit
156bdc4b95
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue