Skip to content

Commit ddaf06b

Browse files
chrisseatoneregon
authored andcommitted
Fix jt build —no-sforceimports
1 parent c476ed3 commit ddaf06b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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)