From 0f32edf28d2af10f8e0cca73ba1972e0155cb541 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Thu, 9 Sep 2021 18:29:43 -0400 Subject: [PATCH] `Base.julia_cmd()`: correctly forward the `--sysimage-native-code=no` flag if it is provided (#42185) (cherry picked from commit f6b38a6c4211c38508d7216426377ad2666b26e2) --- base/util.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/util.jl b/base/util.jl index a8bbd92116a83..82ce7d585f883 100644 --- a/base/util.jl +++ b/base/util.jl @@ -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