summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-12-09 11:47:53 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-12-09 16:35:21 -0500
commit5d4242fa81435e4fa39911c97e1e802fe855678f (patch)
tree160ac0ebb948f2e8745c2595f30ad50779c765b8
parent88d49628dd9e72efb5773bcdff9da7e6ab187ceb (diff)
Only delete gc directory if empty
If building in the source directory, this will delete the gc directory.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12295
-rw-r--r--common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 7f72c9440f..e4cb6bb38d 100644
--- a/common.mk
+++ b/common.mk
@@ -752,7 +752,7 @@ clean-platform: PHONY
clean-extout: PHONY
-$(Q)$(RMDIR) $(EXTOUT)/$(arch) $(RUBYCOMMONDIR) $(EXTOUT) 2> $(NULL) || $(NULLCMD)
clean-gc: PHONY
- $(Q) $(RMALL) gc
+ -$(Q) $(RMDIR) gc
clean-docs: clean-rdoc clean-html clean-capi
clean-spec: PHONY
clean-rubyspec: clean-spec