[Lldb-commits] [lldb] 49ef440 - [lldb] replace usage of $(RM) in Makefile (#180755)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 12 05:54:38 PST 2026
Author: Charles Zablit
Date: 2026-02-12T14:54:33+01:00
New Revision: 49ef440525f3902bb62ca5c198f1a1309fede033
URL: https://github.com/llvm/llvm-project/commit/49ef440525f3902bb62ca5c198f1a1309fede033
DIFF: https://github.com/llvm/llvm-project/commit/49ef440525f3902bb62ca5c198f1a1309fede033.diff
LOG: [lldb] replace usage of $(RM) in Makefile (#180755)
This patch replaces the usages of `$(RM)` with cross platform `$(call
RM,...)` calls which was added in
https://github.com/llvm/llvm-project/pull/180224.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/make/Makefile.rules
lldb/test/API/functionalities/disassembler-variables/Makefile
lldb/test/API/functionalities/module_cache/bsd/Makefile
lldb/test/API/linux/sepdebugsymlink/Makefile
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 4109670ebe64c..eeaf651792fee 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -730,7 +730,7 @@ clean::
ifeq "$(findstring lldb-test-build.noindex, $(BUILDDIR))" ""
$(error Trying to invoke the clean rule, but not using the default build tree layout)
else
- $(RM) -r $(wildcard $(BUILDDIR)/*)
+ $(call RM_RF,$(wildcard $(BUILDDIR)/*))
endif
#----------------------------------------------------------------------
diff --git a/lldb/test/API/functionalities/disassembler-variables/Makefile b/lldb/test/API/functionalities/disassembler-variables/Makefile
index 0b6a8cc6bb297..2be51d8d3d774 100644
--- a/lldb/test/API/functionalities/disassembler-variables/Makefile
+++ b/lldb/test/API/functionalities/disassembler-variables/Makefile
@@ -27,6 +27,6 @@ all: $(ASM_OBJS) $(EXE)
# Keeping things tidy.
clean::
- $(RM) -f $(ASM_OBJS) dummy_main.c
+ $(call RM_RF,$(ASM_OBJS) dummy_main.c)
include Makefile.rules
diff --git a/lldb/test/API/functionalities/module_cache/bsd/Makefile b/lldb/test/API/functionalities/module_cache/bsd/Makefile
index 8060c20f7d5be..751eec8eb799e 100644
--- a/lldb/test/API/functionalities/module_cache/bsd/Makefile
+++ b/lldb/test/API/functionalities/module_cache/bsd/Makefile
@@ -9,7 +9,7 @@ a.out: main.o libfoo.a
lib_ab.a: a.o b.o
$(AR) $(ARFLAGS) $@ $^
- $(RM) $^
+ $(call RM,$^)
# Here we make a .a file that has two a.o files with
diff erent modification
# times and
diff erent content by first creating libfoo.a with only a.o and b.o,
@@ -22,6 +22,6 @@ libfoo.a: lib_ab.a c.o
touch c.o
mv c.o a.o
$(AR) $(ARFLAGS) $@ lib_ab.a a.o
- $(RM) a.o
+ $(call RM,a.o)
include Makefile.rules
diff --git a/lldb/test/API/linux/sepdebugsymlink/Makefile b/lldb/test/API/linux/sepdebugsymlink/Makefile
index a1b84c1843e96..ad6a17c0d7530 100644
--- a/lldb/test/API/linux/sepdebugsymlink/Makefile
+++ b/lldb/test/API/linux/sepdebugsymlink/Makefile
@@ -3,13 +3,13 @@ C_SOURCES := main.c
all: dirsymlink
dirreal: a.out
- $(RM) -r $@
+ $(call RM_RF,$@)
mkdir $@
$(OBJCOPY) --only-keep-debug $< $@/stripped.debug
$(OBJCOPY) --strip-all --add-gnu-debuglink=$@/stripped.debug $< $@/stripped.out
dirsymlink: dirreal
- $(RM) -r $@
+ $(call RM_RF,$@)
mkdir $@
ln -s ../$</stripped.out $@/stripped.symlink
More information about the lldb-commits
mailing list