Skip to content

Commit d6d8a33

Browse files
committed
Add rustc_codegen_ssa to sysroot
1 parent c08840d commit d6d8a33

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed

Cargo.lock

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,18 +2160,34 @@ dependencies = [
21602160
"memmap 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
21612161
"num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
21622162
"rustc-demangle 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
2163-
"rustc_codegen_ssa 0.0.0",
21642163
"rustc_llvm 0.0.0",
21652164
]
21662165

21672166
[[package]]
21682167
name = "rustc_codegen_ssa"
21692168
version = "0.0.0"
21702169
dependencies = [
2170+
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
21712171
"cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
2172+
"jobserver 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
2173+
"libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)",
2174+
"log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
21722175
"memmap 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
21732176
"num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
2177+
"rustc 0.0.0",
21742178
"rustc-demangle 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
2179+
"rustc_allocator 0.0.0",
2180+
"rustc_apfloat 0.0.0",
2181+
"rustc_codegen_utils 0.0.0",
2182+
"rustc_data_structures 0.0.0",
2183+
"rustc_errors 0.0.0",
2184+
"rustc_fs_util 0.0.0",
2185+
"rustc_incremental 0.0.0",
2186+
"rustc_mir 0.0.0",
2187+
"rustc_target 0.0.0",
2188+
"serialize 0.0.0",
2189+
"syntax 0.0.0",
2190+
"syntax_pos 0.0.0",
21752191
]
21762192

21772193
[[package]]
@@ -2230,6 +2246,7 @@ dependencies = [
22302246
"rustc-rayon 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
22312247
"rustc_allocator 0.0.0",
22322248
"rustc_borrowck 0.0.0",
2249+
"rustc_codegen_ssa 0.0.0",
22332250
"rustc_codegen_utils 0.0.0",
22342251
"rustc_data_structures 0.0.0",
22352252
"rustc_errors 0.0.0",

src/librustc_codegen_llvm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ test = false
1313
cc = "1.0.1"
1414
num_cpus = "1.0"
1515
rustc-demangle = "0.1.4"
16-
rustc_codegen_ssa = { path = "../librustc_codegen_ssa" }
1716
rustc_llvm = { path = "../librustc_llvm" }
1817
memmap = "0.6"
1918

src/librustc_codegen_ssa/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,29 @@ version = "0.0.0"
66
[lib]
77
name = "rustc_codegen_ssa"
88
path = "lib.rs"
9+
crate-type = ["dylib"]
910
test = false
1011

1112
[dependencies]
13+
bitflags = "1.0.4"
1214
cc = "1.0.1"
1315
num_cpus = "1.0"
1416
rustc-demangle = "0.1.4"
1517
memmap = "0.6"
18+
log = "0.4.5"
19+
libc = "0.2.43"
20+
jobserver = "0.1.11"
21+
22+
serialize = { path = "../libserialize" }
23+
syntax = { path = "../libsyntax" }
24+
syntax_pos = { path = "../libsyntax_pos" }
25+
rustc = { path = "../librustc" }
26+
rustc_allocator = { path = "../librustc_allocator" }
27+
rustc_apfloat = { path = "../librustc_apfloat" }
28+
rustc_codegen_utils = { path = "../librustc_codegen_utils" }
29+
rustc_data_structures = { path = "../librustc_data_structures"}
30+
rustc_errors = { path = "../librustc_errors" }
31+
rustc_fs_util = { path = "../librustc_fs_util" }
32+
rustc_incremental = { path = "../librustc_incremental" }
33+
rustc_mir = { path = "../librustc_mir" }
34+
rustc_target = { path = "../librustc_target" }

src/librustc_driver/Cargo.toml

Lines changed: 4 additions & 0 deletions
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

0 commit comments

Comments
 (0)