Skip to content

Commit daa6431

Browse files
committed
jt build --new-hash to update the revision hash
Useful when benchmarking, debugging, etc.
1 parent 8f49625 commit daa6431

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tool/jt.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ def help
768768
it is also linked in your ruby manager (if found) under the same name,
769769
by default it is the name of the mx env file,
770770
the named build stays until it is rebuilt or deleted manually
771+
--new-hash update the Git hash in RUBY_DESCRIPTION
771772
mx options: options passed directly to mx
772773
-d start the Java debugger and enables assertions when running truffleruby to configure C extensions
773774
mx build options options passed to the 'build' command of mx
@@ -2373,6 +2374,8 @@ def bootstrap_toolchain
23732374
remove_shared_compile_artifacts
23742375
end
23752376

2377+
FileUtils.touch(Dir.glob('src/**/BuildInformation.java').first) if options.delete('--new-hash')
2378+
23762379
env = if (i = options.index('--env') || options.index('-e'))
23772380
options.delete_at i
23782381
options.delete_at i

0 commit comments

Comments
 (0)