Skip to content

Commit 992d99b

Browse files
committed
Test fixes and rebase conflicts
1 parent 6f97d6b commit 992d99b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def get_toml(self, key):
296296

297297
def get_mk(self, key):
298298
for line in iter(self.config_mk.splitlines()):
299-
if line.startswith(key + ' :='):
299+
if line.startswith(key + ' '):
300300
var = line[line.find(':=') + 2:].strip()
301301
if var != '':
302302
return var

src/bootstrap/doc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ fn symlink_dir_force(src: &Path, dst: &Path) -> io::Result<()> {
279279
if m.file_type().is_dir() {
280280
try!(fs::remove_dir_all(dst));
281281
} else {
282-
try!(fs::remove_file(dst));
282+
// handle directory junctions on windows
283+
try!(fs::remove_file(dst).or_else(|_| {
284+
fs::remove_dir(dst)
285+
}));
283286
}
284287
}
285288

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn llvm(build: &Build, target: &str) {
5858
}
5959
}
6060
if build.config.llvm_clean_rebuild {
61-
t!(fs::remove_dir_all(&out_dir));
61+
drop(fs::remove_dir_all(&out_dir));
6262
}
6363

6464
println!("Building LLVM for {}", target);

src/ci/docker/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ exec docker \
5858
--env DEPLOY_ALT=$DEPLOY_ALT \
5959
--env LOCAL_USER_ID=`id -u` \
6060
--volume "$HOME/.cargo:/cargo" \
61+
--privileged \
6162
--rm \
6263
rust-ci \
6364
/checkout/src/ci/run.sh

0 commit comments

Comments
 (0)