[Lldb-commits] [lldb] [lldb][test] Link test binaries with -random_uuid (PR #199385)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Sat May 23 16:44:24 PDT 2026
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/199385
None
>From 3cbbc3be224df7b99a28d72805f08b812413630c Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Sat, 23 May 2026 16:28:12 -0700
Subject: [PATCH] [lldb][test] Link test binaries with -random_uuid
---
lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 1ec9b420e3f36..44aa91ef7b6fc 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -209,6 +209,10 @@ ifeq "$(OS)" "Darwin"
DSFLAGS := $(DSFLAGS_EXTRAS)
DSYM = $(EXE).dSYM
ARFLAGS := -static -o
+ # The default UUID is a hash based on filename and __text section content.
+ # Use a random UUID so that LLDB and Spotlight never confuse two test
+ # binaries, where repeated test code can result in identical binaries.
+ LDFLAGS += -Wl,-random_uuid
else
ifeq "$(SPLIT_DEBUG_SYMBOLS)" "YES"
DSYM = $(EXE).debug
More information about the lldb-commits
mailing list