fix bug when there is version id in the path of compiler (#26916)
This commit is contained in:
parent
9a637bbd09
commit
02bea6d2d2
@ -197,8 +197,8 @@ def answer_configure_question(self, outputbuf):
|
|||||||
if "Please select from among the following" in outputbuf:
|
if "Please select from among the following" in outputbuf:
|
||||||
options = collect_platform_options(outputbuf)
|
options = collect_platform_options(outputbuf)
|
||||||
comp_pair = "%s/%s" % (
|
comp_pair = "%s/%s" % (
|
||||||
basename(self.compiler.fc),
|
basename(self.compiler.fc).split("-")[0],
|
||||||
basename(self.compiler.cc),
|
basename(self.compiler.cc).split("-")[0],
|
||||||
)
|
)
|
||||||
compiler_matches = dict(
|
compiler_matches = dict(
|
||||||
(x, y) for x, y in options.items() if comp_pair in x.lower()
|
(x, y) for x, y in options.items() if comp_pair in x.lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user