[Lldb-commits] [lldb] [lldb] Build the TestRosetta.py executable with system stdlib (PR #78370)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 16 16:19:32 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Alex Langford (bulbazord)

<details>
<summary>Changes</summary>

This is a speculative fix for TestRosetta.py which is currently failing on Green Dragon.

TestRosetta just makes sure we can debug an x86_64 process on Apple Silicon. However, we're failing to build the x86_64 test binary. The linker is failing with some warnings about libc++ and libunwind being build for arm64 while the target binary is x86_64. I'm going to try building with the system standard libraries instead of the just-built ones to workaround it.

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


1 Files Affected:

- (modified) lldb/test/API/macosx/rosetta/Makefile (+2) 


``````````diff
diff --git a/lldb/test/API/macosx/rosetta/Makefile b/lldb/test/API/macosx/rosetta/Makefile
index 8dd53c8407e1634..40707da8f100772 100644
--- a/lldb/test/API/macosx/rosetta/Makefile
+++ b/lldb/test/API/macosx/rosetta/Makefile
@@ -1,4 +1,6 @@
 C_SOURCES := main.c
 override ARCH = x86_64
 
+USE_SYSTEM_STDLIB := 1
+
 include Makefile.rules

``````````

</details>


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


More information about the lldb-commits mailing list