Skip to content

Commit 4adc6b7

Browse files
committed
Fix jt build —no-sforceimports
PullRequest: truffleruby/688
2 parents 6336076 + e46bccb commit 4adc6b7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def jt(*args):
5858

5959
def build_truffleruby(args = []):
6060
mx.command_function('sversions')([])
61-
jt("build")
61+
jt('build', '--no-sforceimports')
6262

6363
def ruby_deploy_binaries(args):
6464
"""Deploy a binary suite for truffleruby"""

tool/jt.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,10 @@ def help
517517
graalvm [--graal] [--native] build a minimal JVM-only GraalVM containing only TruffleRuby
518518
--graal include graal compiler in the build
519519
--native build native ruby image as well
520-
native [--no-sulong] [--no-jvmci] [--no-sforceimports] [--no-tools] [extra mx image options]
520+
native [--no-sulong] [--no-jvmci] [--no-tools] [extra mx image options]
521521
build a native image of TruffleRuby (--no-jvmci to use the system Java)
522522
(--no-tools to exclude chromeinspector and profiler)
523+
--no-sforceimports
523524
jt build_stats [--json] <attribute> prints attribute's value from build process (e.g., binary size)
524525
jt clean clean
525526
jt env prints the current environment
@@ -1880,7 +1881,9 @@ def install_graal(*options)
18801881
end
18811882

18821883
def build_graalvm(*options)
1883-
mx('-p', TRUFFLERUBY_DIR, 'sforceimports') unless ci?
1884+
sforceimports = !options.delete("--no-sforceimports")
1885+
mx('-p', TRUFFLERUBY_DIR, 'sforceimports') if !ci? && sforceimports
1886+
18841887
graal = options.delete('--graal')
18851888
native = options.delete('--native')
18861889

0 commit comments

Comments
 (0)