From 1954494ec9aa84983f55646fb8f5cac433a3b7bc Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Sat, 15 Feb 2025 19:32:23 +0530 Subject: change config.toml to bootstrap.toml for bootstrap module --- src/bootstrap/defaults/bootstrap.compiler.toml | 37 ++++++++++++++++++++++++++ src/bootstrap/defaults/bootstrap.dist.toml | 27 +++++++++++++++++++ src/bootstrap/defaults/bootstrap.library.toml | 20 ++++++++++++++ src/bootstrap/defaults/bootstrap.tools.toml | 21 +++++++++++++++ src/bootstrap/defaults/config.compiler.toml | 37 -------------------------- src/bootstrap/defaults/config.dist.toml | 27 ------------------- src/bootstrap/defaults/config.library.toml | 20 -------------- src/bootstrap/defaults/config.tools.toml | 21 --------------- 8 files changed, 105 insertions(+), 105 deletions(-) create mode 100644 src/bootstrap/defaults/bootstrap.compiler.toml create mode 100644 src/bootstrap/defaults/bootstrap.dist.toml create mode 100644 src/bootstrap/defaults/bootstrap.library.toml create mode 100644 src/bootstrap/defaults/bootstrap.tools.toml delete mode 100644 src/bootstrap/defaults/config.compiler.toml delete mode 100644 src/bootstrap/defaults/config.dist.toml delete mode 100644 src/bootstrap/defaults/config.library.toml delete mode 100644 src/bootstrap/defaults/config.tools.toml (limited to 'src/bootstrap/defaults') diff --git a/src/bootstrap/defaults/bootstrap.compiler.toml b/src/bootstrap/defaults/bootstrap.compiler.toml new file mode 100644 index 00000000000..269b90106e3 --- /dev/null +++ b/src/bootstrap/defaults/bootstrap.compiler.toml @@ -0,0 +1,37 @@ +# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM +[build] +# Contributors working on the compiler will probably expect compiler docs to be generated. +compiler-docs = true + +[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 +# Enables debug assertions, which guard from many mistakes when working on the compiler. +debug-assertions = true +# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes +debuginfo-level = "line-tables-only" +# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. +incremental = true +# Print backtrace on internal compiler errors during bootstrap +backtrace-on-ice = true +# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. +lto = "off" +# Forces frame pointers to be used with `-Cforce-frame-pointers`. +# This can be helpful for profiling at a small performance cost. +frame-pointers = true +# 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. +download-rustc = false + +[llvm] +# 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 +# Enable warnings during the LLVM compilation (when LLVM is changed, causing a compilation) +enable-warnings = true +# Will download LLVM from CI if available on your platform. +# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. +download-ci-llvm = true diff --git a/src/bootstrap/defaults/bootstrap.dist.toml b/src/bootstrap/defaults/bootstrap.dist.toml new file mode 100644 index 00000000000..7b381b416ca --- /dev/null +++ b/src/bootstrap/defaults/bootstrap.dist.toml @@ -0,0 +1,27 @@ +# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes. +[build] +# When compiling from source, you almost always want a full stage 2 build, +# which has all the latest optimizations from nightly. +build-stage = 2 +test-stage = 2 +doc-stage = 2 +# When compiling from source, you usually want all tools. +extended = true + +# Most users installing from source want to build all parts of the project from source. +[llvm] +download-ci-llvm = false + +[rust] +# We have several defaults in bootstrap that depend on whether the channel is `dev` (e.g. `omit-git-hash` and `download-ci-llvm`). +# Make sure they don't get set when installing from source. +channel = "nightly" +# Never download a rustc, distributions must build a fresh compiler. +download-rustc = false +lld = true +# Build the llvm-bitcode-linker +llvm-bitcode-linker = true + +[dist] +# Use better compression when preparing tarballs. +compression-profile = "balanced" diff --git a/src/bootstrap/defaults/bootstrap.library.toml b/src/bootstrap/defaults/bootstrap.library.toml new file mode 100644 index 00000000000..b43796d6f20 --- /dev/null +++ b/src/bootstrap/defaults/bootstrap.library.toml @@ -0,0 +1,20 @@ +# These defaults are meant for contributors to the standard library and documentation. +[build] +# When building the standard library, you almost never want to build the compiler itself. +build-stage = 0 +test-stage = 0 +bench-stage = 0 + +[rust] +# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. +incremental = true +# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. +lto = "off" +# Download rustc by default for library profile if compiler-affecting +# directories are not modified. For CI this is disabled. +download-rustc = "if-unchanged" + +[llvm] +# Will download LLVM from CI if available on your platform. +# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. +download-ci-llvm = true diff --git a/src/bootstrap/defaults/bootstrap.tools.toml b/src/bootstrap/defaults/bootstrap.tools.toml new file mode 100644 index 00000000000..57c2706f60a --- /dev/null +++ b/src/bootstrap/defaults/bootstrap.tools.toml @@ -0,0 +1,21 @@ +# These defaults are meant for contributors to tools which build on the +# compiler, but do not modify it directly. +[rust] +# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. +incremental = true +# Most commonly, tools contributors do not need to modify the compiler, so +# downloading a CI rustc is a good default for tools profile. +download-rustc = "if-unchanged" + +[build] +# cargo and clippy tests don't pass on stage 1 +test-stage = 2 +# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile. +doc-stage = 2 +# Contributors working on tools will probably expect compiler docs to be generated, so they can figure out how to use the API. +compiler-docs = true + +[llvm] +# Will download LLVM from CI if available on your platform. +# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. +download-ci-llvm = true diff --git a/src/bootstrap/defaults/config.compiler.toml b/src/bootstrap/defaults/config.compiler.toml deleted file mode 100644 index 269b90106e3..00000000000 --- a/src/bootstrap/defaults/config.compiler.toml +++ /dev/null @@ -1,37 +0,0 @@ -# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM -[build] -# Contributors working on the compiler will probably expect compiler docs to be generated. -compiler-docs = true - -[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 -# Enables debug assertions, which guard from many mistakes when working on the compiler. -debug-assertions = true -# Get actually-useful information from backtraces, profiling, etc. with minimal added bytes -debuginfo-level = "line-tables-only" -# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. -incremental = true -# Print backtrace on internal compiler errors during bootstrap -backtrace-on-ice = true -# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. -lto = "off" -# Forces frame pointers to be used with `-Cforce-frame-pointers`. -# This can be helpful for profiling at a small performance cost. -frame-pointers = true -# 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. -download-rustc = false - -[llvm] -# 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 -# Enable warnings during the LLVM compilation (when LLVM is changed, causing a compilation) -enable-warnings = true -# Will download LLVM from CI if available on your platform. -# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. -download-ci-llvm = true diff --git a/src/bootstrap/defaults/config.dist.toml b/src/bootstrap/defaults/config.dist.toml deleted file mode 100644 index 7b381b416ca..00000000000 --- a/src/bootstrap/defaults/config.dist.toml +++ /dev/null @@ -1,27 +0,0 @@ -# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes. -[build] -# When compiling from source, you almost always want a full stage 2 build, -# which has all the latest optimizations from nightly. -build-stage = 2 -test-stage = 2 -doc-stage = 2 -# When compiling from source, you usually want all tools. -extended = true - -# Most users installing from source want to build all parts of the project from source. -[llvm] -download-ci-llvm = false - -[rust] -# We have several defaults in bootstrap that depend on whether the channel is `dev` (e.g. `omit-git-hash` and `download-ci-llvm`). -# Make sure they don't get set when installing from source. -channel = "nightly" -# Never download a rustc, distributions must build a fresh compiler. -download-rustc = false -lld = true -# Build the llvm-bitcode-linker -llvm-bitcode-linker = true - -[dist] -# Use better compression when preparing tarballs. -compression-profile = "balanced" diff --git a/src/bootstrap/defaults/config.library.toml b/src/bootstrap/defaults/config.library.toml deleted file mode 100644 index b43796d6f20..00000000000 --- a/src/bootstrap/defaults/config.library.toml +++ /dev/null @@ -1,20 +0,0 @@ -# These defaults are meant for contributors to the standard library and documentation. -[build] -# When building the standard library, you almost never want to build the compiler itself. -build-stage = 0 -test-stage = 0 -bench-stage = 0 - -[rust] -# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. -incremental = true -# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. -lto = "off" -# Download rustc by default for library profile if compiler-affecting -# directories are not modified. For CI this is disabled. -download-rustc = "if-unchanged" - -[llvm] -# Will download LLVM from CI if available on your platform. -# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. -download-ci-llvm = true diff --git a/src/bootstrap/defaults/config.tools.toml b/src/bootstrap/defaults/config.tools.toml deleted file mode 100644 index 57c2706f60a..00000000000 --- a/src/bootstrap/defaults/config.tools.toml +++ /dev/null @@ -1,21 +0,0 @@ -# These defaults are meant for contributors to tools which build on the -# compiler, but do not modify it directly. -[rust] -# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. -incremental = true -# Most commonly, tools contributors do not need to modify the compiler, so -# downloading a CI rustc is a good default for tools profile. -download-rustc = "if-unchanged" - -[build] -# cargo and clippy tests don't pass on stage 1 -test-stage = 2 -# Document with the in-tree rustdoc by default, since `download-rustc` makes it quick to compile. -doc-stage = 2 -# Contributors working on tools will probably expect compiler docs to be generated, so they can figure out how to use the API. -compiler-docs = true - -[llvm] -# Will download LLVM from CI if available on your platform. -# If you intend to modify `src/llvm-project`, use `"if-unchanged"` or `false` instead. -download-ci-llvm = true -- cgit 1.4.1-3-g733a5