[Lldb-commits] [lldb] [lldb] Fix TestBranchIslands.py for arm64e (PR #200498)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri May 29 13:59:52 PDT 2026
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/200498
Need to pass CFLAGS to clang when building the asm files, otherwise the triple isn't used and they're automatically compiled for the host platform.
>From ac8b9b444c4b0d9e301b0869a70c23e27ea4e11e Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Fri, 29 May 2026 13:57:51 -0700
Subject: [PATCH] [lldb] Fix TestBranchIslands.py for arm64e
Need to pass CFLAGS to clang when building the asm files, otherwise the
triple isn't used and they're automatically compiled for the host
platform.
---
lldb/test/API/macosx/branch-islands/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/test/API/macosx/branch-islands/Makefile b/lldb/test/API/macosx/branch-islands/Makefile
index 062e947f6d6ee..d7bfb33da0073 100644
--- a/lldb/test/API/macosx/branch-islands/Makefile
+++ b/lldb/test/API/macosx/branch-islands/Makefile
@@ -7,7 +7,7 @@ a.out: main.o padding1.o padding2.o padding3.o padding4.o foo.o
${CC} ${LDFLAGS} foo.o padding1.o padding2.o padding3.o padding4.o main.o -o a.out
%.o: $(SRCDIR)/%.s
- ${CC} -c $<
+ ${CC} ${CFLAGS} -c $<
#padding1.o: padding1.s
# ${CC} -c $(SRCDIR)/padding1.s
More information about the lldb-commits
mailing list