[Lldb-commits] [lldb] 352fd0b - [lldb][test] Link test binaries with -random_uuid (#199385)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 29 11:49:05 PDT 2026
Author: Dave Lee
Date: 2026-05-29T11:49:00-07:00
New Revision: 352fd0bd9b8ee5f89ec1fe508d5aa35525cd94e9
URL: https://github.com/llvm/llvm-project/commit/352fd0bd9b8ee5f89ec1fe508d5aa35525cd94e9
DIFF: https://github.com/llvm/llvm-project/commit/352fd0bd9b8ee5f89ec1fe508d5aa35525cd94e9.diff
LOG: [lldb][test] Link test binaries with -random_uuid (#199385)
Link using `-random_uuid` on macOS to avoid accidental UUID matching in tests.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/make/Makefile.rules
Removed:
################################################################################
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