Skip to content

Commit

Permalink
Migrate all flags into the FLAGS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherjimmy committed Aug 2, 2018
1 parent 63f6216 commit c777bd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/export/makefile/__init__.py
Expand Up @@ -88,12 +88,9 @@ def generate(self):
if (basename(dirname(dirname(self.export_dir)))
== "projectfiles")
else [".."]),
'cc_cmd': " ".join([basename(self.toolchain.cc[0])] +
self.toolchain.cc[1:]),
'cppc_cmd': " ".join([basename(self.toolchain.cppc[0])] +
self.toolchain.cppc[1:]),
'asm_cmd': " ".join([basename(self.toolchain.asm[0])] +
self.toolchain.asm[1:]),
'cc_cmd': basename(self.toolchain.cc[0]),
'cppc_cmd': basename(self.toolchain.cppc[0]),
'asm_cmd': basename(self.toolchain.asm[0]),
'ld_cmd': basename(self.toolchain.ld[0]),
'elf2bin_cmd': basename(self.toolchain.elf2bin),
'link_script_ext': self.toolchain.LINKER_EXT,
Expand Down Expand Up @@ -123,6 +120,9 @@ def generate(self):
'to_be_compiled']:
ctx[key] = sorted(ctx[key])
ctx.update(self.format_flags())
ctx['asm_flags'].extend(self.toolchain.asm[1:])
ctx['c_flags'].extend(self.toolchain.cc[1:])
ctx['cxx_flags'].extend(self.toolchain.cppc[1:])

# Add the virtual path the the include option in the ASM flags
new_asm_flags = []
Expand Down

0 comments on commit c777bd6

Please sign in to comment.