We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d34318d + 651bb69 commit 098d228Copy full SHA for 098d228
src/bootstrap/lib.rs
@@ -991,7 +991,8 @@ impl Build {
991
992
/// Returns the "musl root" for this `target`, if defined
993
fn musl_root(&self, target: &str) -> Option<&Path> {
994
- self.config.target_config[target].musl_root.as_ref()
+ self.config.target_config.get(target)
995
+ .and_then(|t| t.musl_root.as_ref())
996
.or(self.config.musl_root.as_ref())
997
.map(|p| &**p)
998
}
0 commit comments