Skip to content

Commit 152ffac

Browse files
committed
Handle clean on YARPNativeBuildTask before the Makefile exists
1 parent b643fc1 commit 152ffac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ def build(self):
138138
mx.run(['./configure'], cwd=self.subject.dir)
139139
super(YARPNativeBuildTask, self).build() # make
140140

141+
def clean(self, forBuild=False):
142+
if exists(join(self.subject.dir, 'Makefile')):
143+
super(YARPNativeBuildTask, self).clean(forBuild=forBuild)
144+
else:
145+
pass
146+
141147
# Commands
142148

143149
def jt(*args):

0 commit comments

Comments
 (0)