[Lldb-commits] [lldb] [lldb][NativePDB] Compile `vbases.test` without default libraries (PR #186510)

via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 13 13:48:25 PDT 2026


https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/186510

#185735 added the `vbases.test`, which compiles with `--target=x86_64-windows-msvc`. This will cause the final executable to be linked to `libcmt.lib`. That doesn't work on ARM, so this PR changes the command line to link without the default libraries. They're not needed if we disable `/GS` (buffer security check) like in other tests.

We use `%clang_cl` over `%build` to be able to compile with DWARF as well.

>From f1ba4f6771aa3af92ab1867f2e64934f1df19070 Mon Sep 17 00:00:00 2001
From: Nerixyz <nerixdev at outlook.de>
Date: Fri, 13 Mar 2026 21:43:39 +0100
Subject: [PATCH] [lldb][NativePDB] Compile `vbases.test` without default
 libraries

---
 lldb/test/Shell/SymbolFile/NativePDB/vbases.test | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lldb/test/Shell/SymbolFile/NativePDB/vbases.test b/lldb/test/Shell/SymbolFile/NativePDB/vbases.test
index e7ba38a462768..2d0b5dd26dae4 100644
--- a/lldb/test/Shell/SymbolFile/NativePDB/vbases.test
+++ b/lldb/test/Shell/SymbolFile/NativePDB/vbases.test
@@ -4,11 +4,11 @@
 
 # RUN: split-file %s %t
 
-# RUN: %clang_cl --target=x86_64-windows-msvc -Z7 -c /Fo%t.cv.obj -- %t/main.cpp
-# RUN: %clang_cl --target=x86_64-windows-msvc -Z7 -gdwarf -c /Fo%t.dwarf.obj -- %t/main.cpp
+# RUN: %clang_cl --target=x86_64-windows-msvc -Z7 -c /GS- /Fo%t.cv.obj -- %t/main.cpp
+# RUN: %clang_cl --target=x86_64-windows-msvc -Z7 -gdwarf -c /GS- /Fo%t.dwarf.obj -- %t/main.cpp
 
-# RUN: lld-link -debug %t.cv.obj -out:%t.cv.exe
-# RUN: lld-link -debug %t.dwarf.obj -out:%t.dwarf.exe
+# RUN: lld-link -debug -nodefaultlib -entry:main %t.cv.obj -out:%t.cv.exe
+# RUN: lld-link -debug -nodefaultlib -entry:main %t.dwarf.obj -out:%t.dwarf.exe
 
 # RUN: %lldb -f %t.cv.exe -s %t/commands.input 2>&1 | FileCheck %s
 # RUN: %lldb -f %t.dwarf.exe -s %t/commands.input 2>&1 | FileCheck %s



More information about the lldb-commits mailing list