bootstrap: extract from any compression algorithm during distcheck

上级 d0d0ee0b
......@@ -1968,7 +1968,7 @@ fn run(self, builder: &Builder<'_>) {
builder.ensure(dist::Src);
let mut cmd = Command::new("tar");
cmd.arg("-xzf")
cmd.arg("-xf")
.arg(builder.ensure(dist::PlainSourceTarball))
.arg("--strip-components=1")
.current_dir(&dir);
......@@ -1992,10 +1992,7 @@ fn run(self, builder: &Builder<'_>) {
t!(fs::create_dir_all(&dir));
let mut cmd = Command::new("tar");
cmd.arg("-xzf")
.arg(builder.ensure(dist::Src))
.arg("--strip-components=1")
.current_dir(&dir);
cmd.arg("-xf").arg(builder.ensure(dist::Src)).arg("--strip-components=1").current_dir(&dir);
builder.run(&mut cmd);
let toml = dir.join("rust-src/lib/rustlib/src/rust/library/std/Cargo.toml");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册