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)

(cherry picked from commit f6b38a6)
  • Loading branch information
DilumAluthge authored and KristofferC committed Sep 11, 2021
1 parent 32db554 commit 0f32edf
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 0f32edf

Please sign in to comment.