Skip to content

Commit

Permalink
Base.julia_cmd(): correctly forward the --sysimage-native-code=no
Browse files Browse the repository at this point in the history
… flag if it is provided (#42185)
  • Loading branch information
DilumAluthge authored Sep 9, 2021
1 parent 655a1a4 commit f6b38a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ function julia_cmd(julia=joinpath(Sys.BINDIR::String, julia_exename()))
if opts.startupfile == 2
push!(addflags, "--startup-file=no")
end
if opts.use_sysimage_native_code == 0
push!(addflags, "--sysimage-native-code=no")
end
return `$julia -C$cpu_target -J$image_file $addflags`
end

Expand Down

0 comments on commit f6b38a6

Please sign in to comment.