Skip to content

Commit 930768a

Browse files
committed
Move cg_ssa dependency fro rustc-main to rustc_driver
cc rust-lang#55864
1 parent 059e6a6 commit 930768a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,6 @@ dependencies = [
21142114
name = "rustc-main"
21152115
version = "0.0.0"
21162116
dependencies = [
2117-
"rustc_codegen_ssa 0.0.0",
21182117
"rustc_driver 0.0.0",
21192118
"rustc_target 0.0.0",
21202119
]
@@ -2297,6 +2296,7 @@ dependencies = [
22972296
"rustc-rayon 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
22982297
"rustc_allocator 0.0.0",
22992298
"rustc_borrowck 0.0.0",
2299+
"rustc_codegen_ssa 0.0.0",
23002300
"rustc_codegen_utils 0.0.0",
23012301
"rustc_data_structures 0.0.0",
23022302
"rustc_errors 0.0.0",

src/librustc_driver/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ smallvec = { version = "0.6.5", features = ["union"] }
3939
syntax_ext = { path = "../libsyntax_ext" }
4040
syntax_pos = { path = "../libsyntax_pos" }
4141

42+
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
43+
# crate is intended to be used by codegen backends, which may not be in-tree.
44+
rustc_codegen_ssa = { path = "../librustc_codegen_ssa" }
45+
4246
[dependencies.jemalloc-sys]
4347
version = '0.1.8'
4448
optional = true

src/rustc/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,5 @@ path = "rustc.rs"
1111
rustc_target = { path = "../librustc_target" }
1212
rustc_driver = { path = "../librustc_driver" }
1313

14-
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
15-
# crate is intended to be used by codegen backends, which may not be in-tree.
16-
rustc_codegen_ssa = { path = "../librustc_codegen_ssa" }
17-
1814
[features]
1915
jemalloc = ['rustc_driver/jemalloc-sys']

0 commit comments

Comments
 (0)