[Lldb-commits] [lldb] [LLDB] Compile bytecode test with DWARF and LLD (PR #185002)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 6 05:01:04 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Nerixyz (Nerixyz)
<details>
<summary>Changes</summary>
Since #<!-- -->184903, the bytecode is now used in the test. This caused a failure on Windows (e.g. https://lab.llvm.org/buildbot/#/builders/211/builds/6765), as we compile with PDB by default and PDBs don't have info about templates.
With this PR, we force DWARF debug info. On Windows that requires LLD to be used because of the long section names.
---
Full diff: https://github.com/llvm/llvm-project/pull/185002.diff
1 Files Affected:
- (modified) lldb/test/Shell/ScriptInterpreter/Python/bytecode.test (+3-1)
``````````diff
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test b/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test
index 8639644772877..50012cc5282aa 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test
+++ b/lldb/test/Shell/ScriptInterpreter/Python/bytecode.test
@@ -1,6 +1,8 @@
+# REQUIRES: lld
+
# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --test
-# RUN: %clang_host -std=c++17 -g %S/Inputs/FormatterBytecode/MyOptional.cpp -o %t.exe
+# RUN: %clang_host -std=c++17 -g %S/Inputs/FormatterBytecode/MyOptional.cpp -fuse-ld=lld -gdwarf -o %t.exe
# RUN: %lldb %t.exe -o "command script import %S/../../../../examples/python/formatter_bytecode.py" -o "command script import %S/Inputs/FormatterBytecode/formatter.py" -o "b -p here" -o "r" -o "v x" -o "v y" -o q | FileCheck %s --check-prefix=OPTIONAL
# OPTIONAL: (lldb) v x
# OPTIONAL: (MyOptional<int>) x = None {
``````````
</details>
https://github.com/llvm/llvm-project/pull/185002
More information about the lldb-commits
mailing list