Skip to content

Commit 13676f0

Browse files
authored
Merge pull request #3189 from theotherjimmy/make-use-path
[Exporters - Make-based] Force make exporter to search PATH for compilers
2 parents 359413e + 79bccc1 commit 13676f0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tools/export/makefile/__init__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,18 @@ def generate(self):
6464
== "projectfiles")
6565
else [".."]),
6666
'cc_cmd': " ".join(["\'" + part + "\'" for part
67-
in self.toolchain.cc]),
67+
in ([basename(self.toolchain.cc[0])] +
68+
self.toolchain.cc[1:])]),
6869
'cppc_cmd': " ".join(["\'" + part + "\'" for part
69-
in self.toolchain.cppc]),
70+
in ([basename(self.toolchain.cppc[0])] +
71+
self.toolchain.cppc[1:])]),
7072
'asm_cmd': " ".join(["\'" + part + "\'" for part
71-
in self.toolchain.asm]),
73+
in ([basename(self.toolchain.asm[0])] +
74+
self.toolchain.asm[1:])]),
7275
'ld_cmd': " ".join(["\'" + part + "\'" for part
73-
in self.toolchain.ld]),
74-
'elf2bin_cmd': "\'" + self.toolchain.elf2bin + "\'",
76+
in ([basename(self.toolchain.ld[0])] +
77+
self.toolchain.ld[1:])]),
78+
'elf2bin_cmd': "\'" + basename(self.toolchain.elf2bin) + "\'",
7579
'link_script_ext': self.toolchain.LINKER_EXT,
7680
'link_script_option': self.LINK_SCRIPT_OPTION,
7781
'user_library_flag': self.USER_LIBRARY_FLAG,

0 commit comments

Comments
 (0)