]> git.lizzy.rs Git - rust.git/commitdiff
Remove codegen dependencies
authorMark Rousskov <mark.simulacrum@gmail.com>
Wed, 4 Sep 2019 01:50:01 +0000 (21:50 -0400)
committerMark Rousskov <mark.simulacrum@gmail.com>
Thu, 5 Sep 2019 16:35:18 +0000 (12:35 -0400)
Not doing this leads to building two copies of e.g. num_cpus in the
sysroot and _llvm deps, leading to conflicts between the two when
compiling librustc_codegen_llvm. It's not entirely clear why this is the
case after the changes in this PR but likely has something to do with a
subtle difference in ordering or similar.

Cargo.lock
src/librustc_codegen_llvm/Cargo.toml

index 243a326646c382c3b3d2e66984ec2d3e7658bdd8..e0b0640178b032a0369fb39f3cba0a63451c4abd 100644 (file)
@@ -3129,11 +3129,7 @@ dependencies = [
 name = "rustc_codegen_llvm"
 version = "0.0.0"
 dependencies = [
- "cc",
- "memmap",
- "num_cpus",
  "rustc_llvm",
- "tempfile",
 ]
 
 [[package]]
index 5e1b0eafdec3672fc842f1bb7334cd5ec03c3e43..98efa6a5804bd352d4617912ecdaaf58f099df4a 100644 (file)
@@ -11,11 +11,7 @@ crate-type = ["dylib"]
 test = false
 
 [dependencies]
-cc = "1.0.1" # Used to locate MSVC
-num_cpus = "1.0"
-tempfile = "3.0"
 rustc_llvm = { path = "../librustc_llvm" }
-memmap = "0.6"
 
 [features]
 # This is used to convince Cargo to separately cache builds of `rustc_codegen_llvm`