[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:55 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Nerixyz (Nerixyz)

<details>
<summary>Changes</summary>

#<!-- -->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.

---
Full diff: https://github.com/llvm/llvm-project/pull/186510.diff


1 Files Affected:

- (modified) lldb/test/Shell/SymbolFile/NativePDB/vbases.test (+4-4) 


``````````diff
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

``````````

</details>


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


More information about the lldb-commits mailing list