Skip to content

Commit c777bd6

Browse files
committed
Migrate all flags into the FLAGS variables
1 parent 63f6216 commit c777bd6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/export/makefile/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@ def generate(self):
8888
if (basename(dirname(dirname(self.export_dir)))
8989
== "projectfiles")
9090
else [".."]),
91-
'cc_cmd': " ".join([basename(self.toolchain.cc[0])] +
92-
self.toolchain.cc[1:]),
93-
'cppc_cmd': " ".join([basename(self.toolchain.cppc[0])] +
94-
self.toolchain.cppc[1:]),
95-
'asm_cmd': " ".join([basename(self.toolchain.asm[0])] +
96-
self.toolchain.asm[1:]),
91+
'cc_cmd': basename(self.toolchain.cc[0]),
92+
'cppc_cmd': basename(self.toolchain.cppc[0]),
93+
'asm_cmd': basename(self.toolchain.asm[0]),
9794
'ld_cmd': basename(self.toolchain.ld[0]),
9895
'elf2bin_cmd': basename(self.toolchain.elf2bin),
9996
'link_script_ext': self.toolchain.LINKER_EXT,
@@ -123,6 +120,9 @@ def generate(self):
123120
'to_be_compiled']:
124121
ctx[key] = sorted(ctx[key])
125122
ctx.update(self.format_flags())
123+
ctx['asm_flags'].extend(self.toolchain.asm[1:])
124+
ctx['c_flags'].extend(self.toolchain.cc[1:])
125+
ctx['cxx_flags'].extend(self.toolchain.cppc[1:])
126126

127127
# Add the virtual path the the include option in the ASM flags
128128
new_asm_flags = []

0 commit comments

Comments
 (0)