Skip to content

Commit f6b38a6

Browse files
authored
Base.julia_cmd(): correctly forward the --sysimage-native-code=no flag if it is provided (#42185)
1 parent 655a1a4 commit f6b38a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/util.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ function julia_cmd(julia=joinpath(Sys.BINDIR::String, julia_exename()))
208208
if opts.startupfile == 2
209209
push!(addflags, "--startup-file=no")
210210
end
211+
if opts.use_sysimage_native_code == 0
212+
push!(addflags, "--sysimage-native-code=no")
213+
end
211214
return `$julia -C$cpu_target -J$image_file $addflags`
212215
end
213216

0 commit comments

Comments
 (0)