Author: Charles Zablit Date: 2026-06-12T15:33:39+02:00 New Revision: 7d42028e806ab2b17af22ddb8417432e4781d4aa
URL: https://github.com/llvm/llvm-project/commit/7d42028e806ab2b17af22ddb8417432e4781d4aa DIFF: https://github.com/llvm/llvm-project/commit/7d42028e806ab2b17af22ddb8417432e4781d4aa.diff LOG: [lldb][Windows] Make RM_RF a no-op on an empty argument and swallow errors (#203040) This patch makes the Windows `RM_RF` a no-op on an empty argument and swallow errors, matching Unix `rm -rf`. This fixes issues in swiftlang on fresh builds. This is needed for https://github.com/swiftlang/llvm-project/pull/13180 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 bc78404b37588..1e23d3fb0e883 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -44,7 +44,7 @@ ifeq "$(OS)" "Windows_NT" CP_R = xcopy $(subst /,\,$(1)) $(subst /,\,$(2)) /s /e /y RM = del $(subst /,\,$(1)) > nul 2>&1 || (exit 0) RM_F = del /f /q $(subst /,\,$(1)) - RM_RF = rd /s /q $(subst /,\,$(1)) + RM_RF = $(if $(strip $(1)),rd /s /q $(subst /,\,$(1)) > nul 2>&1 || (exit 0)) LN_SF = mklink /D "$(subst /,\,$(2))" "$(subst /,\,$(1))" ECHO = echo $(1); ECHO_TO_FILE = echo $(subst ',,$(1))> "$(subst /,\,$(2))" _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
