Skip to content

Commit c0765af

Browse files
committed
Docs for Base.julia_cmd(). News and compat annotation
for #29858 (capture --inline flag in julia_cmd).
1 parent c61fb47 commit c0765af

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Standard library changes
6363
the returned array ([#29670]).
6464
* The process id is appended to malloc log files in order to track memory allocations of
6565
multiple processes ([#29969]).
66+
* `Base.julia_cmd` now propagates the `--inline=(yes|no)` flag ([#29858]).
6667

6768
Compiler/Runtime improvements
6869
-----------------------------

base/util.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,16 @@ printstyled(io::IO, msg...; bold::Bool=false, color::Union{Int,Symbol}=:normal)
399399
with_output_color(print, color, io, msg...; bold=bold)
400400
printstyled(msg...; bold::Bool=false, color::Union{Int,Symbol}=:normal) =
401401
printstyled(stdout, msg...; bold=bold, color=color)
402+
"""
403+
Base.julia_cmd(juliapath=joinpath(Sys.BINDIR::String, julia_exename()))
404+
405+
Return a julia command similar to the one of the running process.
406+
Propagates the `--cpu-target`, `--sysimage`, --compile `, `--depwarn`
407+
and `--inline` command line arguments.
402408
409+
!!! compat "Julia 1.1"
410+
The `--inline` flag is only propagated in Julia 1.1 and later.
411+
"""
403412
function julia_cmd(julia=joinpath(Sys.BINDIR::String, julia_exename()))
404413
opts = JLOptions()
405414
cpu_target = unsafe_string(opts.cpu_target)

0 commit comments

Comments
 (0)