Skip to content

Commit

Permalink
Handle clean on YARPNativeBuildTask before the Makefile exists
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jul 3, 2023
1 parent b643fc1 commit 152ffac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mx.truffleruby/mx_truffleruby.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ def build(self):
mx.run(['./configure'], cwd=self.subject.dir)
super(YARPNativeBuildTask, self).build() # make

def clean(self, forBuild=False):
if exists(join(self.subject.dir, 'Makefile')):
super(YARPNativeBuildTask, self).clean(forBuild=forBuild)
else:
pass

# Commands

def jt(*args):
Expand Down

0 comments on commit 152ffac

Please sign in to comment.