rust/build_system/build_sysroot/Cargo.toml

39 lines
1.6 KiB
TOML
Raw Normal View History

2020-05-10 09:54:30 -05:00
[package]
authors = ["rustc_codegen_gcc devs"]
2020-05-10 09:54:30 -05:00
name = "sysroot"
version = "0.0.0"
2023-08-13 08:37:32 -05:00
resolver = "2"
2020-05-10 09:54:30 -05:00
[dependencies]
core = { path = "./sysroot_src/library/core" }
compiler_builtins = "0.1"
2020-05-10 09:54:30 -05:00
alloc = { path = "./sysroot_src/library/alloc" }
std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtrace"] }
test = { path = "./sysroot_src/library/test" }
proc_macro = { path = "./sysroot_src/library/proc_macro" }
2020-05-10 09:54:30 -05:00
[patch.crates-io]
rustc-std-workspace-core = { path = "./sysroot_src/library/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "./sysroot_src/library/rustc-std-workspace-alloc" }
rustc-std-workspace-std = { path = "./sysroot_src/library/rustc-std-workspace-std" }
# For compiler-builtins we always use a high number of codegen units.
# The goal here is to place every single intrinsic into its own object
# file to avoid symbol clashes with the system libgcc if possible. Note
# that this number doesn't actually produce this many object files, we
# just don't create more than this number of object files.
#
# It's a bit of a bummer that we have to pass this here, unfortunately.
# Ideally this would be specified through an env var to Cargo so Cargo
# knows how many CGUs are for this specific crate, but for now
# per-crate configuration isn't specifiable in the environment.
[profile.dev.package.compiler_builtins]
codegen-units = 10000
[profile.release.package.compiler_builtins]
codegen-units = 10000
2020-05-10 09:54:30 -05:00
[profile.release]
debug = "limited"
2023-05-12 10:40:04 -05:00
#lto = "fat" # TODO(antoyo): re-enable when the failing LTO tests regarding proc-macros are fixed.