rust/compiler/rustc/Cargo.toml

26 lines
661 B
TOML
Raw Normal View History

[package]
name = "rustc-main"
version = "0.0.0"
2021-09-19 16:49:55 +00:00
edition = "2021"
[dependencies]
2020-08-28 03:58:48 +00:00
rustc_driver = { path = "../rustc_driver" }
# Make sure rustc_codegen_ssa ends up in the sysroot, because this
# crate is intended to be used by codegen backends, which may not be in-tree.
2020-08-28 03:58:48 +00:00
rustc_codegen_ssa = { path = "../rustc_codegen_ssa" }
2021-04-04 21:07:56 +00:00
[dependencies.tikv-jemalloc-sys]
version = '0.4.0'
optional = true
features = ['unprefixed_malloc_on_supported_platforms']
2021-04-04 21:07:56 +00:00
[dependencies.tikv-jemallocator]
version = '0.4.0'
optional = true
[features]
2021-04-04 21:07:56 +00:00
jemalloc = ['tikv-jemalloc-sys', 'tikv-jemallocator']
rustc: Link LLVM directly into rustc again This commit builds on #65501 continue to simplify the build system and compiler now that we no longer have multiple LLVM backends to ship by default. Here this switches the compiler back to what it once was long long ago, which is linking LLVM directly to the compiler rather than dynamically loading it at runtime. The `codegen-backends` directory of the sysroot no longer exists and all relevant support in the build system is removed. Note that `rustc` still supports a dynamically loaded codegen backend as it did previously, it just no longer supports dynamically loaded codegen backends in its own sysroot. Additionally as part of this the `librustc_codegen_llvm` crate now once again explicitly depends on all of its crates instead of implicitly loading them through the sysroot. This involved filling out its `Cargo.toml` and deleting all the now-unnecessary `extern crate` annotations in the header of the crate. (this in turn required adding a number of imports for names of macros too). The end results of this change are: * Rustbuild's build process for the compiler as all the "oh don't forget the codegen backend" checks can be easily removed. * Building `rustc_codegen_llvm` is much simpler since it's simply another compiler crate. * Managing the dependencies of `rustc_codegen_llvm` is much simpler since it's "just another `Cargo.toml` to edit" * The build process should be a smidge faster because there's more parallelism in the main rustc build step rather than splitting `librustc_codegen_llvm` out to its own step. * The compiler is expected to be slightly faster by default because the codegen backend does not need to be dynamically loaded. * Disabling LLVM as part of rustbuild is still supported, supporting multiple codegen backends is still supported, and dynamic loading of a codegen backend is still supported.
2019-10-22 15:51:35 +00:00
llvm = ['rustc_driver/llvm']
2020-09-11 16:37:51 +00:00
max_level_info = ['rustc_driver/max_level_info']