summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-05-17 23:55:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-05-18 14:33:00 +0900
commit97c12c5f692d176278dd6445a751788568b54e4d (patch)
tree8fc810f2110968ee8383c7f9d8e2dd4904cef4a9 /template
parent9a0f5a8edc9c1a7b3d1f85fb1c02e137520cfe1a (diff)
downloadruby-97c12c5f692d176278dd6445a751788568b54e4d.tar.gz
Clean intermediate object files
Diffstat (limited to 'template')
-rw-r--r--template/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/template/Makefile.in b/template/Makefile.in
index 28504d5326..acda941639 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -311,6 +311,7 @@ $(LIBRUBY_A):
$(ECHO0) 'merging $(YJIT_LIBS) into $@' && \
$(RMALL) libyjit/ && \
$(MAKEDIRS) libyjit/ && \
+ trap "$(RMALL) libyjit/" 0 && \
(cd libyjit/ && $(AR) -x ../$(YJIT_LIBS)) && \
: "$(AR) $(ARFLAGS) $@ libyjit/*.$(OBJEXT)" && \
find libyjit/ -name '*.$(OBJEXT)' -exec $(AR) $(ARFLAGS) $@ '{}' '+' ; \