Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 476742 Details for
Bug 617744
dev-lang/rust-1.18.0, dev-util/cargo-0.19.0 - version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rust-1.18.0-bootstrap-use-configured-rustc-cargo-paths.patch
rust-1.18.0-bootstrap-use-configured-rustc-cargo-paths.patch (text/plain), 1.77 KB, created by
Dennis Schridde
on 2017-06-17 12:53:02 UTC
(
hide
)
Description:
rust-1.18.0-bootstrap-use-configured-rustc-cargo-paths.patch
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2017-06-17 12:53:02 UTC
Size:
1.77 KB
patch
obsolete
>From 73267374d4176ac1c5d685ff2bac36556cfa4730 Mon Sep 17 00:00:00 2001 >From: Mark Simulacrum <mark.simulacrum@gmail.com> >Date: Fri, 16 Jun 2017 07:44:09 -0600 >Subject: [PATCH] Use custom cargo/rustc paths when parsing flags. > >--- > src/bootstrap/flags.rs | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > >diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs >index 56cbb4cecf2a..dc9dac736278 100644 >--- a/src/bootstrap/flags.rs >+++ b/src/bootstrap/flags.rs >@@ -242,11 +242,18 @@ Arguments: > let cwd = t!(env::current_dir()); > let paths = matches.free[1..].iter().map(|p| cwd.join(p)).collect::<Vec<_>>(); > >+ let cfg_file = matches.opt_str("config").map(PathBuf::from).or_else(|| { >+ if fs::metadata("config.toml").is_ok() { >+ Some(PathBuf::from("config.toml")) >+ } else { >+ None >+ } >+ }); > > // All subcommands can have an optional "Available paths" section > if matches.opt_present("verbose") { > let flags = Flags::parse(&["build".to_string()]); >- let mut config = Config::default(); >+ let mut config = Config::parse(&flags.build, cfg_file.clone()); > config.build = flags.build.clone(); > let mut build = Build::new(flags, config); > metadata::build(&mut build); >@@ -307,14 +314,6 @@ Arguments: > }; > > >- let cfg_file = matches.opt_str("config").map(PathBuf::from).or_else(|| { >- if fs::metadata("config.toml").is_ok() { >- Some(PathBuf::from("config.toml")) >- } else { >- None >- } >- }); >- > let mut stage = matches.opt_str("stage").map(|j| j.parse().unwrap()); > > if matches.opt_present("incremental") {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 617744
:
475276
|
475278
|
475280
|
475588
|
475590
|
476730
| 476742 |
476744
|
476746
|
476748
|
477190
|
477200
|
477202
|
477204
|
477206
|
477632
|
493740
|
506794