Added RUSTC_GRAPHVIZ_FONT environment variable
Overrides the debugging_opts.graphviz_font setting.
This commit is contained in:
parent
5c29332ace
commit
3875abe32f
@ -1762,6 +1762,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
|
|||||||
debugging_opts.symbol_mangling_version = SymbolManglingVersion::V0;
|
debugging_opts.symbol_mangling_version = SymbolManglingVersion::V0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Ok(graphviz_font) = std::env::var("RUSTC_GRAPHVIZ_FONT") {
|
||||||
|
debugging_opts.graphviz_font = graphviz_font;
|
||||||
|
}
|
||||||
|
|
||||||
if !cg.embed_bitcode {
|
if !cg.embed_bitcode {
|
||||||
match cg.lto {
|
match cg.lto {
|
||||||
LtoCli::No | LtoCli::Unspecified => {}
|
LtoCli::No | LtoCli::Unspecified => {}
|
||||||
|
@ -910,7 +910,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
|
|||||||
graphviz_dark_mode: bool = (false, parse_bool, [UNTRACKED],
|
graphviz_dark_mode: bool = (false, parse_bool, [UNTRACKED],
|
||||||
"use dark-themed colors in graphviz output (default: no)"),
|
"use dark-themed colors in graphviz output (default: no)"),
|
||||||
graphviz_font: String = ("Courier, monospace".to_string(), parse_string, [UNTRACKED],
|
graphviz_font: String = ("Courier, monospace".to_string(), parse_string, [UNTRACKED],
|
||||||
"use the given `fontname` in graphviz output (default: `Courier, monospace`)"),
|
"use the given `fontname` in graphviz output; can be overridden by setting \
|
||||||
|
environment variable `RUSTC_GRAPHVIZ_FONT` (default: `Courier, monospace`)"),
|
||||||
hir_stats: bool = (false, parse_bool, [UNTRACKED],
|
hir_stats: bool = (false, parse_bool, [UNTRACKED],
|
||||||
"print some statistics about AST and HIR (default: no)"),
|
"print some statistics about AST and HIR (default: no)"),
|
||||||
human_readable_cgu_names: bool = (false, parse_bool, [TRACKED],
|
human_readable_cgu_names: bool = (false, parse_bool, [TRACKED],
|
||||||
|
Loading…
Reference in New Issue
Block a user