aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2024-09-11 16:04:01 +0300
committerGitHub <noreply@github.com>2024-09-11 16:04:01 +0300
commit44fc987ed174e32544a577387ab0df6886495e82 (patch)
treef74eb023f965b4aaeac3cf44e65ebb656cbb5832 /lldb/test/API/python_api
parent2a130f1a140613445b8f387d3fa54328c1b94cde (diff)
downloadllvm-44fc987ed174e32544a577387ab0df6886495e82.zip
llvm-44fc987ed174e32544a577387ab0df6886495e82.tar.gz
llvm-44fc987ed174e32544a577387ab0df6886495e82.tar.bz2
[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>
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/frame/inlines/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/python_api/frame/inlines/Makefile b/lldb/test/API/python_api/frame/inlines/Makefile
index e6d9d83..cf17569 100644
--- a/lldb/test/API/python_api/frame/inlines/Makefile
+++ b/lldb/test/API/python_api/frame/inlines/Makefile
@@ -1,6 +1,6 @@
C_SOURCES := inlines.c
-ifneq (,$(findstring icc,$(CC)))
+ifeq ($(CC_TYPE), icc)
CFLAGS_EXTRAS := -debug inline-debug-info
endif