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

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.

>From ac6c10de050dc193bb394f28f7648a9dcaeb81f2 Mon Sep 17 00:00:00 2001
From: Nerixyz <[email protected]>
Date: Fri, 6 Mar 2026 13:55:38 +0100
Subject: [PATCH] [LLDB] Compile bytecode test with DWARF and LLD

---
 lldb/test/Shell/ScriptInterpreter/Python/bytecode.test | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 {

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to