[lldb][test] Toolchain detection rewrite in Python (#102185)

This fix is based on a problem with cxx_compiler and cxx_linker macros
on Windows.
There was an issue with compiler detection in paths containing "icc". In
such case, Makefile.rules thought it was provided with icc compiler.

To solve that, utilities detection has been rewritten in Python.
The last element of compiler's path is separated, taking into account
the platform path delimiter, and compiler type is extracted, with regard
of possible cross-toolchain prefix.

---------

Co-authored-by: Pavel Labath <pavel@labath.sk>
This commit is contained in:
Vladislav Dzhidzhoev
2024-09-11 16:04:01 +03:00
committed by GitHub
parent 2a130f1a14
commit 44fc987ed1
23 changed files with 139 additions and 106 deletions

View File

@@ -1,6 +1,6 @@
C_SOURCES := inlines.c
ifneq (,$(findstring icc,$(CC)))
ifeq ($(CC_TYPE), icc)
CFLAGS_EXTRAS := -debug inline-debug-info
endif