Skip to content

Commit

Permalink
Docs for Base.julia_cmd(). News and compat annotation
Browse files Browse the repository at this point in the history
for #29858 (capture --inline flag in julia_cmd).
  • Loading branch information
fredrikekre committed Dec 1, 2018
1 parent d7a8711 commit c6eb016
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Standard library changes
the returned array ([#29670]).
* The process id is appended to malloc log files in order to track memory allocations of
multiple processes ([#29969]).
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).

Compiler/Runtime improvements
-----------------------------
Expand Down
9 changes: 9 additions & 0 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,16 @@ printstyled(io::IO, msg...; bold::Bool=false, color::Union{Int,Symbol}=:normal)
with_output_color(print, color, io, msg...; bold=bold)
printstyled(msg...; bold::Bool=false, color::Union{Int,Symbol}=:normal) =
printstyled(stdout, msg...; bold=bold, color=color)
"""
Base.julia_cmd(juliapath=joinpath(Sys.BINDIR::String, julia_exename()))
Return a julia command similar to the one of the running process.
Propagates the `--cpu-target`, `--sysimage`, --compile `, `--depwarn`
and `--inline` command line arguments.
!!! compat "Julia 1.1"
The `--inline` flag is only propagated in Julia 1.1 and later.
"""
function julia_cmd(julia=joinpath(Sys.BINDIR::String, julia_exename()))
opts = JLOptions()
cpu_target = unsafe_string(opts.cpu_target)
Expand Down

0 comments on commit c6eb016

Please sign in to comment.