Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture --inline value in Base.julia_cmd() #29858

Merged
merged 1 commit into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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