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.
1 parent 666e714 commit a6f7628Copy full SHA for a6f7628
src/bootstrap/step.rs
@@ -137,7 +137,9 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules {
137
while let Some(krate) = list.pop() {
138
let default = krate == name;
139
let krate = &build.crates[krate];
140
- let path = krate.path.strip_prefix(&build.src).unwrap();
+ let path = krate.path.strip_prefix(&build.src)
141
+ // This handles out of tree paths
142
+ .unwrap_or(&krate.path);
143
ret.push((krate, path.to_str().unwrap(), default));
144
for dep in krate.deps.iter() {
145
if visited.insert(dep) && dep != "build_helper" {
0 commit comments