2020-05-10 09:54:30 -05:00
|
|
|
[package]
|
2024-03-20 09:15:20 -05:00
|
|
|
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" }
|
2024-08-08 07:42:44 -05:00
|
|
|
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" }
|
2023-06-19 17:51:02 -05:00
|
|
|
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" }
|
|
|
|
|
2024-08-12 09:28:27 -05:00
|
|
|
# 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]
|
2024-03-19 07:49:07 -05:00
|
|
|
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.
|