llvm: improve detection regexes (#46187)

This commit is contained in:
Kyle Knoepfel 2024-09-04 05:12:42 -05:00 committed by GitHub
parent 744f034dfb
commit 7ba0132f66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ def filter_detected_exes(cls, prefix, exes_in_prefix):
reject = re.compile(
r"-(vscode|cpp|cl|gpu|tidy|rename|scan-deps|format|refactor|offload|"
r"check|query|doc|move|extdef|apply|reorder|change-namespace|"
r"include-fixer|import-test|dab|server)"
r"include-fixer|import-test|dap|server)"
)
return [x for x in exes_in_prefix if not reject.search(x)]
@ -652,7 +652,7 @@ def supported_languages(self):
@classproperty
def executables(cls):
return super().executables + [r"^ld.lld(-[\d][\d]*)?$", r"^lldb(-[\d][\d]*)?$"]
return super().executables + [r"^ld\.lld(-\d+)?$", r"^lldb(-\d+)?$"]
@classmethod
def determine_version(cls, exe):