Skip to content

Commit c37190e

Browse files
theotherjimmyCruz Monrreal II
authored andcommitted
Drop quotes from command line make
1 parent e672a3e commit c37190e

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

tools/export/makefile/__init__.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,26 @@ def generate(self):
8787
if (basename(dirname(dirname(self.export_dir)))
8888
== "projectfiles")
8989
else [".."]),
90-
'cc_cmd': " ".join(["\'" + part + "\'" for part
91-
in ([basename(self.toolchain.cc[0])] +
92-
self.toolchain.cc[1:])]),
93-
'cppc_cmd': " ".join(["\'" + part + "\'" for part
94-
in ([basename(self.toolchain.cppc[0])] +
95-
self.toolchain.cppc[1:])]),
96-
'asm_cmd': " ".join(["\'" + part + "\'" for part
97-
in ([basename(self.toolchain.asm[0])] +
98-
self.toolchain.asm[1:])]),
99-
'ld_cmd': "\'" + basename(self.toolchain.ld[0]) + "\'",
100-
'elf2bin_cmd': "\'" + basename(self.toolchain.elf2bin) + "\'",
90+
'cc_cmd': " ".join([basename(self.toolchain.cc[0])] +
91+
self.toolchain.cc[1:]),
92+
'cppc_cmd': " ".join([basename(self.toolchain.cppc[0])] +
93+
self.toolchain.cppc[1:]),
94+
'asm_cmd': " ".join([basename(self.toolchain.asm[0])] +
95+
self.toolchain.asm[1:]),
96+
'ld_cmd': basename(self.toolchain.ld[0]),
97+
'elf2bin_cmd': basename(self.toolchain.elf2bin),
10198
'link_script_ext': self.toolchain.LINKER_EXT,
10299
'link_script_option': self.LINK_SCRIPT_OPTION,
103100
'user_library_flag': self.USER_LIBRARY_FLAG,
104101
'needs_asm_preproc': self.PREPROCESS_ASM,
105102
}
106103

107104
if hasattr(self.toolchain, "preproc"):
108-
ctx['pp_cmd'] = " ".join(["\'" + part + "\'" for part
109-
in ([basename(self.toolchain.preproc[0])] +
110-
self.toolchain.preproc[1:] +
111-
self.toolchain.ld[1:])])
105+
ctx['pp_cmd'] = " ".join(
106+
[basename(self.toolchain.preproc[0])] +
107+
self.toolchain.preproc[1:] +
108+
self.toolchain.ld[1:]
109+
)
112110
else:
113111
ctx['pp_cmd'] = None
114112

0 commit comments

Comments
 (0)