Skip to content

Commit 0b1cdc6

Browse files
committed
Do not delete built truffleruby directories
* messes up with Idea if the ruby suddenly disappears
1 parent 2d32048 commit 0b1cdc6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tool/jt.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,12 @@ def clean(*options)
579579
mx 'clean', '--dependencies', 'org.truffleruby.cext'
580580
when nil
581581
mx 'clean'
582-
sh 'rm', '-rf', 'mxbuild'
583582
sh 'rm', '-rf', 'spec/ruby/ext'
583+
Dir.glob("#{TRUFFLERUBY_DIR}/mxbuild/{*,.*}") do |path|
584+
next if File.basename(path).start_with?('truffleruby-')
585+
next if %w(. ..).include? File.basename(path)
586+
sh 'rm', '-rf', path
587+
end
584588
else
585589
raise ArgumentError, project
586590
end

0 commit comments

Comments
 (0)