about summary refs log tree commit diff
path: root/compiler/rustc_interface
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2022-02-11 23:25:14 +0300
committerklensy <klensy@users.noreply.github.com>2022-03-28 08:41:12 +0300
commit008fc79dcd821b08a1ab64f5fba40dcc4bcd3aee (patch)
treeb3968ac6b5ed27b001ac7d29b9123c23b7bdb6da /compiler/rustc_interface
parent78fbcca3e10b6671ca54bd4c01cb84b3f6f13cf3 (diff)
downloadrust-008fc79dcd821b08a1ab64f5fba40dcc4bcd3aee.tar.gz
rust-008fc79dcd821b08a1ab64f5fba40dcc4bcd3aee.zip
Propagate `parallel_compiler` feature through rustc crates. Turned off feature gives change of builded crates: 238 -> 224.
Diffstat (limited to 'compiler/rustc_interface')
-rw-r--r--compiler/rustc_interface/Cargo.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_interface/Cargo.toml b/compiler/rustc_interface/Cargo.toml
index e31119c1292..29d1cd0e054 100644
--- a/compiler/rustc_interface/Cargo.toml
+++ b/compiler/rustc_interface/Cargo.toml
@@ -10,8 +10,8 @@ doctest = false
 libc = "0.2"
 libloading = "0.7.1"
 tracing = "0.1"
-rustc-rayon-core = "0.3.2"
-rayon = { version = "0.3.2", package = "rustc-rayon" }
+rustc-rayon-core = { version = "0.3.2", optional = true }
+rayon = { version = "0.3.2", package = "rustc-rayon", optional = true }
 smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
 rustc_ast = { path = "../rustc_ast" }
 rustc_attr = { path = "../rustc_attr" }
@@ -57,3 +57,4 @@ rustc_target = { path = "../rustc_target" }
 
 [features]
 llvm = ['rustc_codegen_llvm']
+rustc_use_parallel_compiler = ['rayon', 'rustc-rayon-core', 'rustc_query_impl/rustc_use_parallel_compiler']