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

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.

>From 536a232bbae47200071b7b2857504e4f8d411049 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangf...@apple.com>
Date: Tue, 16 Jan 2024 16:16:25 -0800
Subject: [PATCH] [lldb] Build the TestRosetta.py executable with system stdlib

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.
---
 lldb/test/API/macosx/rosetta/Makefile | 2 ++
 1 file changed, 2 insertions(+)

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

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to