2020-09-12 00:42:52 -04:00
|
|
|
# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM
|
2022-05-05 20:03:10 -05:00
|
|
|
[build]
|
|
|
|
|
# Contributors working on the compiler will probably expect compiler docs to be generated.
|
|
|
|
|
compiler-docs = true
|
|
|
|
|
|
2020-09-12 00:42:52 -04:00
|
|
|
[rust]
|
|
|
|
|
# This enables `RUSTC_LOG=debug`, avoiding confusing situations
|
|
|
|
|
# where adding `debug!()` appears to do nothing.
|
|
|
|
|
# However, it makes running the compiler slightly slower.
|
|
|
|
|
debug-logging = true
|
2025-01-19 14:24:46 +01:00
|
|
|
# Enables debug assertions, which guard from many mistakes when working on the compiler.
|
|
|
|
|
debug-assertions = true
|
2024-04-01 13:16:15 -07:00
|
|
|
# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes
|
|
|
|
|
debuginfo-level = "line-tables-only"
|
2020-09-12 00:42:52 -04:00
|
|
|
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower.
|
|
|
|
|
incremental = true
|
2021-04-25 12:09:08 -04:00
|
|
|
# Print backtrace on internal compiler errors during bootstrap
|
|
|
|
|
backtrace-on-ice = true
|
2023-01-23 21:21:35 +00:00
|
|
|
# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown.
|
|
|
|
|
lto = "off"
|
2024-02-16 22:11:19 +01:00
|
|
|
# Forces frame pointers to be used with `-Cforce-frame-pointers`.
|
|
|
|
|
# This can be helpful for profiling at a small performance cost.
|
|
|
|
|
frame-pointers = true
|
2024-11-23 23:26:56 +08:00
|
|
|
# Compiler contributors often want to build rustc even without any changes to
|
|
|
|
|
# e.g. check that it builds locally and check the baseline behavior of a
|
|
|
|
|
# compiler built from latest `master` commit.
|
2024-11-12 12:59:14 +03:00
|
|
|
download-rustc = false
|
2020-10-13 16:57:58 +02:00
|
|
|
|
|
|
|
|
[llvm]
|
2024-02-22 22:04:51 +03:00
|
|
|
# Having this set to true disrupts compiler development workflows for people who use `llvm.download-ci-llvm = true`
|
|
|
|
|
# because we don't provide ci-llvm on the `rustc-alt-builds` server. Therefore, it is kept off by default.
|
|
|
|
|
assertions = false
|
2024-02-18 22:51:17 +01:00
|
|
|
# Enable warnings during the LLVM compilation (when LLVM is changed, causing a compilation)
|
|
|
|
|
enable-warnings = true
|
2020-12-04 12:31:13 -05:00
|
|
|
# Will download LLVM from CI if available on your platform.
|
2024-08-23 16:53:21 +02:00
|
|
|
# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead.
|
|
|
|
|
download-ci-llvm = true
|