Skip to content

Conversation

JustinStitt
Copy link
Contributor

@JustinStitt JustinStitt commented Oct 8, 2025

Remove the liblldb link target for these tests to fix CI failures.

Commit 02572c6 ("[lldb] Enforce that only the LLDB API unit tests can link liblldb") disallows linking against liblldb for most tests. Then, Commit f3e2c20 ("Make
SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again") got merged just after this commit (but before CI could report the regression).

The tests still pass for me with $ ./tools/lldb/unittests/Breakpoint/LLDBBreakpointTests.

The CI failures (like from #162428) seem to also be fixed. I tested locally with:

$ cmake -S ../llvm -B . \ -G Ninja \ -D LLVM_ENABLE_PROJECTS="lldb" \ -D CMAKE_BUILD_TYPE=Release \ -D LLVM_ENABLE_ASSERTIONS=ON \ -D LLDB_ENABLE_PYTHON=OFF 

Closes: #162566

Remove the liblldb link target for these tests to fix CI failures. Commit 02572c6 ("[lldb] Enforce that only the LLDB API unit tests can link liblldb") disallows linking against liblldb for most tests. Then, Commit f3e2c20 ("Make SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again") got merged just after this commit (but before CI could report the regression). Signed-off-by: Justin Stitt <justinstitt@google.com>
@llvmbot
Copy link
Member

llvmbot commented Oct 8, 2025

@llvm/pr-subscribers-lldb

Author: Justin Stitt (JustinStitt)

Changes

Remove the liblldb link target for these tests to fix CI failures.

Commit 02572c6 ("[lldb] Enforce that only the LLDB API unit tests can link liblldb") disallows linking against liblldb for most tests. Then, Commit f3e2c20 ("Make
SBBreakpoint/SBBreakpointLocation.SetCondition(nullptr) work again") got merged just after this commit (but before CI could report the regression).

The tests still pass for me with $ ./tools/lldb/unittests/Breakpoint/LLDBBreakpointTests.


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

1 Files Affected:

  • (modified) lldb/unittests/Breakpoint/CMakeLists.txt (-1)
diff --git a/lldb/unittests/Breakpoint/CMakeLists.txt b/lldb/unittests/Breakpoint/CMakeLists.txt index 3e4161313cd9d..c38b38bc5e90e 100644 --- a/lldb/unittests/Breakpoint/CMakeLists.txt +++ b/lldb/unittests/Breakpoint/CMakeLists.txt @@ -5,7 +5,6 @@ add_lldb_unittest(LLDBBreakpointTests LINK_COMPONENTS Support LINK_LIBS - liblldb lldbBreakpoint lldbCore LLVMTestingSupport 
@kees
Copy link
Contributor

kees commented Oct 9, 2025

I think this got fixed by commit 1395d43 ?

@JustinStitt JustinStitt closed this Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants