1
Fork 0

update config.example.toml

This commit is contained in:
SparrowLii 2023-10-31 17:30:41 +08:00
parent bf5fb7614b
commit 248dd14fa5
2 changed files with 6 additions and 5 deletions

View file

@ -553,10 +553,11 @@ change-id = 117435
# Whether to always use incremental compilation when building rustc # Whether to always use incremental compilation when building rustc
#incremental = false #incremental = false
# Build a multi-threaded rustc # Build a multi-threaded rustc. This allows users to use parallel rustc
# FIXME(#75760): Some UI tests fail when this option is enabled. # via the unstable option `-Z threads=n`.
# NOTE: This option is NOT SUPPORTED. See #48685. # Since stable/beta channels only allow using stable features,
#parallel-compiler = false # `parallel-compiler = false` should be set for these channels.
#parallel-compiler = true
# The default linker that will be hard-coded into the generated # The default linker that will be hard-coded into the generated
# compiler for targets that don't specify a default linker explicitly # compiler for targets that don't specify a default linker explicitly

View file

@ -1112,7 +1112,7 @@ impl Config {
fn parse_inner(args: &[String], get_toml: impl Fn(&Path) -> TomlConfig) -> Config { fn parse_inner(args: &[String], get_toml: impl Fn(&Path) -> TomlConfig) -> Config {
let mut flags = Flags::parse(&args); let mut flags = Flags::parse(&args);
let mut config: Config = Config::default_opts(); let mut config = Config::default_opts();
// Set flags. // Set flags.
config.paths = std::mem::take(&mut flags.paths); config.paths = std::mem::take(&mut flags.paths);