Skip to content

Commit a3545b5

Browse files
eregonhorakivo
authored andcommitted
Handle clean on YARPNativeBuildTask before the Makefile exists
1 parent be98226 commit a3545b5

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)