Skip to content

Commit 87fbf54

Browse files
committed
Rollup merge of rust-lang#54023 - matthiaskrgr:clippy, r=oli-obk
update clippy submodule updates to cafef7b
2 parents ba57ef1 + 10e7b76 commit 87fbf54

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

src/Cargo.lock

+16
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,14 @@ version = "0.0.212"
296296
dependencies = [
297297
"cargo_metadata 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
298298
"clippy-mini-macro-test 0.2.0",
299+
"clippy_dev 0.0.1",
299300
"clippy_lints 0.0.212",
300301
"compiletest_rs 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)",
301302
"derive-new 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)",
302303
"lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
303304
"regex 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
304305
"rustc-workspace-hack 1.0.0",
306+
"rustc_tools_util 0.1.0",
305307
"semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
306308
"serde 1.0.75 (registry+https://github.com/rust-lang/crates.io-index)",
307309
"serde_derive 1.0.75 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -311,6 +313,16 @@ dependencies = [
311313
name = "clippy-mini-macro-test"
312314
version = "0.2.0"
313315

316+
[[package]]
317+
name = "clippy_dev"
318+
version = "0.0.1"
319+
dependencies = [
320+
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
321+
"itertools 0.7.8 (registry+https://github.com/rust-lang/crates.io-index)",
322+
"lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
323+
"regex 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
324+
]
325+
314326
[[package]]
315327
name = "clippy_lints"
316328
version = "0.0.212"
@@ -2361,6 +2373,10 @@ dependencies = [
23612373
"serialize 0.0.0",
23622374
]
23632375

2376+
[[package]]
2377+
name = "rustc_tools_util"
2378+
version = "0.1.0"
2379+
23642380
[[package]]
23652381
name = "rustc_traits"
23662382
version = "0.0.0"

src/bootstrap/dist.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,16 @@ fn maybe_install_llvm_dylib(builder: &Builder,
19021902
let src_libdir = builder
19031903
.llvm_out(target)
19041904
.join("lib");
1905+
let dst_libdir = image.join("lib/rustlib").join(&*target).join("lib");
1906+
t!(fs::create_dir_all(&dst_libdir));
1907+
1908+
if target.contains("apple-darwin") {
1909+
let llvm_dylib_path = src_libdir.join("libLLVM.dylib");
1910+
if llvm_dylib_path.exists() {
1911+
builder.install(&llvm_dylib_path, &dst_libdir, 0o644);
1912+
}
1913+
return
1914+
}
19051915

19061916
// Usually libLLVM.so is a symlink to something like libLLVM-6.0.so.
19071917
// Since tools link to the latter rather than the former, we have to
@@ -1913,8 +1923,6 @@ fn maybe_install_llvm_dylib(builder: &Builder,
19131923
llvm_dylib_path.display(), e);
19141924
});
19151925

1916-
let dst_libdir = image.join("lib/rustlib").join(&*target).join("lib");
1917-
t!(fs::create_dir_all(&dst_libdir));
19181926

19191927
builder.install(&llvm_dylib_path, &dst_libdir, 0o644);
19201928
}

src/tools/clippy

0 commit comments

Comments
 (0)