about summary refs log tree commit diff
path: root/config.example.toml
AgeCommit message (Collapse)AuthorLines
2025-01-10add `optimized-compiler-builtins` to target specific sectiononur-ozkan-0/+9
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-12-04update `build.vendor` documentationonur-ozkan-3/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-25Rollup merge of #132502 - ↵Matthias Krüger-0/+4
Voultapher:document-core-features-in-config-toml-example, r=Mark-Simulacrum Document possibility to set core features in example config.toml
2024-11-23bootstrap: revert `rust.download-rustc` global default to `false`Jieyou Xu-7/+10
And only default library and tools profile to `rust.download-rustc = "if-unchanged"`.
2024-11-18typo in config.example.tomlTshepang Mbambo-1/+1
2024-11-14update download-rustc comments and defaultonur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-12Auto merge of #132954 - matthiaskrgr:rollup-x3rww9h, r=matthiaskrgrbors-2/+3
Rollup of 7 pull requests Successful merges: - #131831 (extend the "if-unchanged" logic for compiler builds) - #132541 (Proper support for cross-crate recursive const stability checks) - #132657 (AIX: add run-make support) - #132901 (Warn about invalid `mir-enable-passes` pass names) - #132923 (Triagebot: Consolidate the T-compiler ad hoc assignment groups) - #132938 (Make precise capturing suggestion machine-applicable only if it has no APITs) - #132947 (clarify `must_produce_diag` ICE for debugging) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-12Delete the `cfg(not(parallel))` serial compilerNoratrieb-2/+1
Since it's inception a long time ago, the parallel compiler and its cfgs have been a maintenance burden. This was a necessary evil the allow iteration while not degrading performance because of synchronization overhead. But this time is over. Thanks to the amazing work by the parallel working group (and the dyn sync crimes), the parallel compiler has now been fast enough to be shipped by default in nightly for quite a while now. Stable and beta have still been on the serial compiler, because they can't use `-Zthreads` anyways. But this is quite suboptimal: - the maintenance burden still sucks - we're not testing the serial compiler in nightly Because of these reasons, it's time to end it. The serial compiler has served us well in the years since it was split from the parallel one, but it's over now. Let the knight slay one head of the two-headed dragon!
2024-11-11update "if-unchanged" comments in config.example.tomlonur-ozkan-2/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-02Document possibility to set core features in example config.tomlLukas Bergdoll-0/+4
2024-11-01refactor(config): remove FIXME statement in comment of `omit-git-hash`ismailarilik-2/+0
It is already fixed.
2024-10-28update download-rustc doc in config.example.tomlonur-ozkan-4/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-10-25Allow building rustc's LLVM with Offload supportManuel Drehwald-0/+3
2024-10-22real default valueOrion Gonzalez-1/+1
2024-10-22s/display-diff-tool/compiletest-diff-tool/Orion Gonzalez-1/+1
2024-10-22implemented custom differOrion Gonzalez-0/+3
2024-10-19bootstrap: allow setting `--jobs` in config.toml许杰友 Jieyou Xu (Joe)-0/+5
2024-10-06bootstrap: add `std_features` configShriram Balaji-0/+10
bootstrap: add std_features to config.example fix: use BTreeSet for std-features; add unit tests * fix formatting of string in front of std_features * rename `std_features` to `std-features` in config.toml fix: remove space before std-features in config.toml fix: remove explicit .into_iter conversion bootstrap: add details for rust.std-features in config.example.toml Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com> fix: remove `Option<T>` from `rust_std_features` fix: move default rust_std_features to config fix: make std_features CI rustc incompatible
2024-09-19update `llvm.download-ci-llvm` documentationonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-15document `dist.vendor` in `config.example.toml`onur-ozkan-0/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-09Rollup merge of #129473 - Urgau:fix-llvm-if-unchanged, r=onur-ozkanJubilee-1/+4
use `download-ci-llvm=true` in the default compiler config https://github.com/rust-lang/rust/commit/1ca2708e77ac735adc3824501667694b4f9c1303 made it so that the `src/llvm-project` submodule has to be checkout for `download-ci-llvm = "if-unchanged"` to know if the submodule has been changed, but that is not required, if the submodule hasn't been checkout it cannot have been modified. ~~This PR restore the previous behavior by only updating the submodule if it has already been checkout.~~ This PR makes `download-ci-llvm = true` check if CI llvm is available and make it the default for the compiler profile, as to prevent unnecessarily checking out `src/llvm-project` with `"if-unchanged"`. r? `````@onur-ozkan`````
2024-09-09update `rust.verbose-tests` doc in `config.example.toml`onur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-09-06Make `download-ci-llvm = true` check if CI llvm is availableUrgau-1/+4
and make it the default for the compiler profile, as to prevent unnecessarily checking out `src/llvm-project` with `"if-unchanged"`.
2024-09-05Enzyme backendManuel Drehwald-0/+3
Co-authored-by: Lorenz Schmidt <bytesnake@mailbox.org>
2024-09-05Rollup merge of #101339 - the8472:ci-randomize-debug, r=Mark-SimulacrumMatthias Krüger-0/+3
enable -Zrandomize-layout in debug CI builds This builds rustc/libs/tools with `-Zrandomize-layout` on *-debug CI runners. Only a handful of tests and asserts break with that enabled, which is promising. One test was fixable, the rest is dealt with by disabling them through new cargo features or compiletest directives. The config.toml flag `rust.randomize-layout` defaults to false, so it has to be explicitly enabled for now.
2024-08-31Add rust.randomize-layout config to build artifacts with -Zrandomize-layoutThe 8472-0/+3
Additionally teach compiletest to ignore tests that rely on deterministic layout. Tests themselves aren't built with randomization but they can still observe slight changes in std or rustc
2024-08-26document `build.cargo-clippy` optiononur-ozkan-0/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-08-22document `miri` and `cargo-miri` in `build.tools`onur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-08-09Enable zstd for debug compression.Kyle Huey-0/+3
Set LLVM_ENABLE_ZSTD alongside LLVM_ENABLE_ZLIB so that --compress-debug-sections=zstd is an option. Use static linking to avoid a new runtime dependency. Add an llvm.libzstd bootstrap option for LLVM with zstd. Set it off by default except for the dist builder. Handle llvm-config --system-libs output that contains static libraries.
2024-07-30update download-rustc documentationonur-ozkan-1/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-27update `rust.channel` documentationonur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-26Update Android testing to API 21, matching NDK 26Matthew Maurer-1/+1
We were running testing on API 18, which was already out of support for NDK 25, and some of the ancient behavior in that image was causing trouble when developing `rustc` features (#120326). Update to the current LTS NDK 26, and to its minimum supported API 21. Fixes: #120567
2024-07-19Conditionally build `wasm-component-ld`Alex Crichton-0/+1
This commit updates the support for the `wasm-component-ld` tool from #126967 to conditionally build it rather than unconditionally building it when LLD is enabled. This support is disabled by default and can be enabled by one of two means: * the `extended` field in `config.toml` which dist builders use to build a complete set of tools for each host platform. * a `"wasm-component-ld"` entry in the `tools` section of `config.toml`. Neither of these are enabled by default meaning that most local builds will likely not have this new tool built. Dist builders should still, however, build the tool.
2024-07-14Rollup merge of #127322 - onur-ozkan:ci-rustc-incompatible-options, ↵Matthias Krüger-1/+1
r=Mark-Simulacrum handle ci-rustc incompatible options during config parse This PR ensures that `config.toml` does not use CI rustc incompatible options when CI rustc is enabled (just like [ci-llvm checks](https://github.com/rust-lang/rust/blob/e2cf31a6148725bde4ea48acf1e4fe72675257a2/src/bootstrap/src/core/config/config.rs#L1809-L1836)). Some options can change compiler's behavior in certain scenarios. If we don't check these incompatible options, CI runners using CI rustc might ignore options we have explicitly set. This could be dangerous as we might think a rustc test passed with option T but in fact it wasn't tested with option T. Later in https://github.com/rust-lang/rust/pull/122709, I will disable CI rustc if any of those options were used (similar to [this approach](https://github.com/rust-lang/rust/blob/dd2c24aafddbd9cc170f32f5b447c7d3005c7412/src/ci/run.sh#L165-L169)). If CI runners fail because of these checks, it means the logic in run.sh isn't covering the incompatible options correctly (since any incompatible option should turn off CI rustc). The list may not be complete, but should be a good first step as it's better than nothing! Blocker for https://github.com/rust-lang/rust/pull/122709
2024-07-07use "bootstrap" instead of "rustbuild" in comments and docsonur-ozkan-4/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-04remove leading space on `frame-pointers`onur-ozkan-1/+1
Leading spaces in config options cause `configure` script to fail. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-06-19Remove `src/tools/rust-demangler`Zalathar-3/+1
2024-06-14Do not enable `llvm-bitcode-linker` in most default bootstrap profilesJakub Beránek-2/+2
2024-06-07config.example.toml: minor improvesTshepang Mbambo-2/+2
2024-05-25Remove deprecated field `dist.missing-tools`onur-ozkan-3/+0
It's been 5 months since this field was deprecated. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-16describe new default value for `rust.lld` in config templateRémy Rakic-3/+6
2024-05-12Auto merge of #124883 - onur-ozkan:change-stage0-file, r=Mark-Simulacrumbors-3/+3
use key-value format in stage0 file Currently, we are working on the python removal task on bootstrap. Which means we have to extract some data from the stage0 file using shell scripts. However, parsing values from the stage0.json file is painful because shell scripts don't have a built-in way to parse json files. This change simplifies the stage0 file format to key-value pairs, which makes it easily readable from any environment. See the zulip thread for more details: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Using.20different.20format.20in.20the.20stage0.20file
2024-05-11remove outdated stage0.json partsonur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-04Added an entry for "lldb" in config.example.tomlVladimir Makaev-0/+4
2024-04-17allow to set line-directives-only tooklensy-5/+2
2024-04-13Rollup merge of #123642 - onur-ozkan:restrict-llvm-option, r=Mark-SimulacrumMatthias Krüger-1/+1
do not allow using local llvm while using rustc from ci From: https://github.com/rust-lang/rust/issues/123586#issuecomment-2043296578 > Even if `llvm.download-ci-llvm` is set to true, `stage > 0` rustc will always use the prebuilt LLVM library which comes with ci-rustc. So I tried to use locally-built LLVM libraries in the ci-rustc by replacing the existing LLVM libraries with the locally built ones, and it appears that this is indeed a limitation of using `rust.download-rustc=true` as it fails with the following error: > > ``` > $ ./build/host/ci-rustc/bin/rustc --version > ./build/host/ci-rustc/bin/rustc: symbol lookup error: /home/nimda/devspace/.other/rustc-builds/build/x86_64-unknown-linux-gnu/ci-rustc/bin/../lib/librustc_driver-a03ea465d8e03db1.so: undefined symbol: LLVMInitializeARMTargetInfo, version LLVM_18.1 > ``` > > So, if `rust.download-rustc` is set to true and `llvm.download-ci-llvm` is false, I believe bootstrap should terminate the process (as it always uses prebuilt LLVM libraries from ci-rustc, there is no point to build LLVM locally) while parsing the configuration. Resolves #123586 r? Mark-Simulacrum
2024-04-11correct the handling of `bootstrap-cache-path` optiononur-ozkan-1/+1
This change makes `build.bootstrap-cache-path` option to be configurable with `./configure` script, so it can be used like `./configure --bootstrap-cache-path=demo`. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-04-09do not allow using local llvm while using rustc from cionur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-03-19use more accurate terminologyTshepang Mbambo-1/+1
rustc is just one tool/executable, even if at the center of the toolchain
2024-03-11[bootstrap] Move the split-debuginfo setting to the per-target sectionTim Neumann-14/+26