Skip to content

Commit

Permalink
Capture --inline value in Base.julia_cmd() (JuliaLang#29858)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored and tkf committed Nov 21, 2018
1 parent 7df7f60 commit 25e319a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,12 @@ function julia_cmd(julia=joinpath(Sys.BINDIR::String, julia_exename()))
else
"yes"
end
`$julia -C$cpu_target -J$image_file --compile=$compile --depwarn=$depwarn`
inline = if opts.can_inline == 0
"no"
else
"yes"
end
`$julia -C$cpu_target -J$image_file --compile=$compile --depwarn=$depwarn --inline=$inline`
end

function julia_exename()
Expand Down
6 changes: 6 additions & 0 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,9 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
end
end
end

# Issue #29855
for yn in ("no", "yes")
exename = `$(Base.julia_cmd()) --startup-file=no --inline=$yn`
@test occursin("--inline=$yn", first(writereadpipeline("Base.julia_cmd()", exename)))
end

0 comments on commit 25e319a

Please sign in to comment.