From 52100fb428da636091303e4a4ecf2f3d3a4cea54 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) --- base/util.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/util.jl b/base/util.jl index f9f0a02376faf9..7e11521e61591d 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