about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2024-01-11apply fmtklensy-4/+7
2024-01-11Auto merge of #119654 - onur-ozkan:bump-dependencies, r=clubby789bors-173/+138
bump bootstrap dependencies This PR removes hard-coded patch versions, updates bootstrap's dependency stack to recent versions (some of the versions were released 3-4 years ago), and removes a few dependencies from bootstrap. Removed dependencies: ![image](https://github.com/rust-lang/rust/assets/39852038/95e86325-aea0-4055-bee5-245c144f662e)
2024-01-11bump bootstrap dependenciesonur-ozkan-173/+138
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-01-10bootstrap: exclude link_jobs from `check_ci_llvm!` checksSimonas Kazlauskas-1/+0
This option is largely there to help people to manage the memory usage on their systems during the LLVM build. The linking phase is as usual are the heaviest part of the build and if in an unlucky conincidence the circumstances align to kick off N_CORES links at the same time, not even hundreds of GiB of memory may suffice. It makes a lot of sense for developers to set&forget this option unconditionally. Not to mention, this option does not, in any way, affect the generated code (at least as far as I know.) It really doesn’t matter what option the CI build LLVM used here and/or if it matches with the user’s configuration. Finally, 0 actual link jobs implied by `download-ci-llvm` is guaranteed to stay within the limits that are reasonable to set with this option.
2024-01-09Rollup merge of #119619 - onur-ozkan:panic-abort-mir-opt, r=oli-obkMatthias Krüger-2/+12
mir-opt and custom target fixes From https://github.com/rust-lang/rust/issues/115642#issuecomment-1879589022 > > Could you please test the last two commits from https://github.com/onur-ozkan/rust/commits/panic-abort-mir-opt when you have the time? The first commit should resolve the error of using the nightly flag with a stable compiler, and the second one should resolve the custom target issue. > I tested with the two commits and the errors of using nightly flag and custom target specs were not seen. Testing was completed for the test suites like ui, run-pass-valgrind, coverage, mir-opt, codegen, assembly, incremental. Fixes #115642
2024-01-08fix the incorrect target on stage1 ui-fulldeps testsonur-ozkan-2/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-01-08enable RUSTC_BOOTSTRAP on panic=abort mir-opt testonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-01-07Auto merge of #119556 - onur-ozkan:optimized-compiler-builtins, r=onur-ozkanbors-31/+79
Reland optimized-compiler-builtins config Copy of #102579 PR. From #102579: > No concerns on my side. Currently, Jyn isn't actively working on the project. I will close this PR; open another one to cherry-pick the commits, resolve conflicts, and then r+ it. > Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 (although there's some weirdness there - it's still broken when optimized-compiler-builtins is set to true). Fixes https://github.com/rust-lang/rust/issues/102560. Fixes https://github.com/rust-lang/rust/issues/101172. Helps with https://github.com/rust-lang/rust/issues/105065 r? ghost
2024-01-07add a new `optimized_compiler_builtins` optionjyn-5/+27
in particular, this makes the `c` feature for compiler-builtins an explicit opt-in, rather than silently detected by whether `llvm-project` is checked out on disk. exposing this is necessary because the `cc` crate doesn't support cross-compiling to MSVC, and we want people to be able to run `x check --target foo` regardless of whether they have a c toolchain available. this also uses the new option in CI, where we *do* want to optimize compiler_builtins. the new option is off by default for the `dev` channel and on otherwise.
2024-01-06Rollup merge of #119548 - onur-ozkan:remove-nested-target-iteration, ↵Michael Goulet-9/+7
r=Mark-Simulacrum Use the current target instead of iterating over all targets Since we already iterate through targets in StepDescription::maybe_run, there is no need to iterate targets again in the install step for std. Compared the results before and after applying the changes to install step of std, and there were no differences. ```sh  ~/devspace/.other/rustc-builds $ sha256sum ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-* c2ea86fc25ffac87b0b135f31ba9644ad97549da4c050c3921b437d1e18285fd ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-pc-windows-gnu d2f1081a779962e2cbc27f53191783d13428abd0964465547af78ce34c7251dd ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu  ~/devspace/.other/rustc-builds $ sha256sum ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-* c2ea86fc25ffac87b0b135f31ba9644ad97549da4c050c3921b437d1e18285fd ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-pc-windows-gnu d2f1081a779962e2cbc27f53191783d13428abd0964465547af78ce34c7251dd ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu ``` Fixes #119533
2024-01-07Auto merge of #119035 - saethlin:remove-linker-requirement, r=onur-ozkanbors-8/+43
Run Miri and mir-opt tests without a target linker Normally, we need a linker for the target to build the standard library. That's only because `std` declares crate-type lib and dylib; building the dylib is what creates a need for the linker. But for mir-opt tests (and for Miri) we do not need to build a `libstd.so`. So with this PR, when we build the standard library for mir-opt tests, instead of `cargo build` we run `cargo rustc --crate-type=lib` which overrides the configured crate types in `std`'s manifest. I've also swapped in what seems to me a better hack than `BOOTSTRAP_SKIP_TARGET_SANITY` to prevent cross-interpreting with Miri from checking for a target linker and expanded it to mir-opt tests too. Whether it's actually better is up to a reviewer.
2024-01-06Run Miri and mir-opt tests without a target linkerBen Kimock-8/+43
2024-01-06Rollup merge of #119486 - onur-ozkan:clippy-allow-dirty-and-staged, ↵Matthias Krüger-1/+16
r=Mark-Simulacrum pass allow-{dirty,staged} to clippy Support of Clippy's `--allow-dirty` and `--allow-staged` flags on bootstrap. Resolves #119483
2024-01-05Rollup merge of #119414 - xry111:xry111/lto-test, r=Mark-SimulacrumMichael Goulet-28/+28
bootstrap: Move -Clto= setting from Rustc::run to rustc_cargo It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
2024-01-05Rollup merge of #119034 - Zalathar:ignore-mode, r=davidtwcoMichael Goulet-1/+1
Allow coverage tests to ignore test modes, and to enable color in coverage reports This PR adds two new header directives to compiletest, intended for use by coverage tests (and by #119033 in particular). The new headers are: - `// ignore-mode-{mode}` causes a test to not be run in a particular compiletest mode (e.g. `ignore-mode-coverage-run`). - This can theoretically be used by any test, but coverage tests are currently the only ones that automatically run in multiple modes, so it's not very useful for other kinds of test. - `// llvm-cov-flags: --use-color` makes `coverage-run` tests pass the flag `--use-color` when generating coverage reports. - For most tests, non-coloured reports are easier to read and more portable across platforms. But for #119033 specifically, we want to test that `llvm-cov` slices up source text correctly, which only happens when colour output is enabled.
2024-01-05Auto merge of #118861 - Veykril:r-a-in-tree, r=onur-ozkanbors-5/+5
Set the `in-rust-tree` feature for all rust-analyzer{-proc-macro-srv} steps Some context: This came up in https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/libraryfying.20match.20checking.3F where `test` and `check` behaved differently for rust-analyzer r? `@onur-ozkan`
2024-01-05Check for profiler support via a flag, instead of an environment varZalathar-1/+1
2024-01-04Auto merge of #119569 - matthiaskrgr:rollup-4packja, r=matthiaskrgrbors-4/+34
Rollup of 10 pull requests Successful merges: - #118521 (Enable address sanitizer for MSVC targets using INFERASANLIBS linker flag) - #119026 (std::net::bind using -1 for openbsd which in turn sets it to somaxconn.) - #119195 (Make named_asm_labels lint not trigger on unicode and trigger on format args) - #119204 (macro_rules: Less hacky heuristic for using `tt` metavariable spans) - #119362 (Make `derive(Trait)` suggestion more accurate) - #119397 (Recover parentheses in range patterns) - #119417 (Uplift some miscellaneous coroutine-specific machinery into `check_closure`) - #119539 (Fix typos) - #119540 (Don't synthesize host effect args inside trait object types) - #119555 (Add codegen test for RVO on MaybeUninit) r? `@ghost` `@rustbot` modify labels: rollup
2024-01-04Handle vendored sources when remapping pathsArlo Siemsen-7/+12
2024-01-04Imply sysroot-abi feature when in-rust-tree is setLukas Wirth-2/+2
2024-01-04Set the `in-rust-tree`` feature for all rust-analyzer{-proc-macro-srv} stepsLukas Wirth-5/+5
2024-01-04Rollup merge of #118521 - dpaoliello:asan, r=wesleywiserMatthias Krüger-4/+34
Enable address sanitizer for MSVC targets using INFERASANLIBS linker flag This enables address sanitizer for x86_64-pc-windows-msvc and i686-pc-windows-msvc targets when linked with the MSVC linker (link.exe) by leveraging the `/INFERASANLIBS` option to automatically find and link in Microsoft's address sanitizer runtime: <https://learn.microsoft.com/en-us/cpp/sanitizers/asan-runtime?view=msvc-170> Implements https://github.com/rust-lang/compiler-team/issues/702 Fixes #89339 (for MSVC targets using the MSVC linker only) Supercedes #89369 Successful x86_64-msvc build showing the sanitizer tests working: https://github.com/rust-lang/rust/actions/runs/7228346880/job/19697628258?pr=118521
2024-01-04Auto merge of #119542 - lnicola:sync-from-ra2, r=lnicolabors-1/+1
Subtree update of `rust-analyzer` r? ghost
2024-01-03add and document a new `is_system_llvm` abstractionjyn-26/+52
2024-01-03Enable address sanitizer for MSVC targets using INFERASANLIBS linker flagDaniel Paoliello-4/+34
2024-01-03Rollup merge of #119298 - onur-ozkan:silence-change-tracker-warning-for-ci, ↵León Orell Valerian Liehr-15/+17
r=Mark-Simulacrum suppress change-tracker warnings in CI containers Fixes #119296
2024-01-03Use the current target instead of iterating over all targets.onur-ozkan-9/+7
Since we already iterate through targets in StepDescription::maybe_run, there is no need to iterate targets again in the install step for std. Compared the results before and after applying the changes to install step of std, and there were no differences. ```sh  ~/devspace/.other/rustc-builds $ sha256sum ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-* c2ea86fc25ffac87b0b135f31ba9644ad97549da4c050c3921b437d1e18285fd ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-pc-windows-gnu d2f1081a779962e2cbc27f53191783d13428abd0964465547af78ce34c7251dd ./old/usr/local/lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu  ~/devspace/.other/rustc-builds $ sha256sum ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-* c2ea86fc25ffac87b0b135f31ba9644ad97549da4c050c3921b437d1e18285fd ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-pc-windows-gnu d2f1081a779962e2cbc27f53191783d13428abd0964465547af78ce34c7251dd ./new/usr/local/lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu ``` Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-01-03Add proc_macro_def_site to r-a ALLOW_FEATURESLaurențiu Nicola-1/+1
2024-01-01pass allow-{dirty,staged} to clippyonur-ozkan-1/+16
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-30bootstrap: extract --check-cfg arg generation and add unit tests for itUrgau-19/+35
2023-12-30Simplify bootstrap check-cfg argumentsUrgau-10/+15
2023-12-30apply bootstrap lock unconditionallyonur-ozkan-32/+23
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-30bootstrap: bump fd-lockonur-ozkan-37/+34
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-30bootstrap: Move -Clto= setting from Rustc::run to rustc_cargoXi Ruoyao-28/+28
It prevents a full rebuild of stage 1 compiler when issuing "x.py test" with rust.lto != thin-local in config.toml.
2023-12-29Auto merge of #119373 - Kobzol:missing-tools-bootstrap, r=onur-ozkanbors-130/+98
Remove usage of deprecated `missing-tools` bootstrap flag This PR removes the usage of `--enable-missing-tools` in CI, as this config option is no longer used. It also removes `dist.missing-tools` config completely. Let me know which commits should I remove (if any). Fixes: https://github.com/rust-lang/rust/issues/79249 r? `@onur-ozkan`
2023-12-29don't return suggestion message if no changes detectedonur-ozkan-15/+17
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-28Remove `is_optional_tool` from `ToolBuild`Jakub Beránek-128/+92
2023-12-28Add change tracker entryJakub Beránek-1/+6
2023-12-28Remove `--enable-missing-tools` from `configure.py`Jakub Beránek-1/+0
2023-12-28utilize the unused `llvm-tools` optiononur-ozkan-8/+10
This field was not functioning as described in its comment in `config.example.toml`. Also, updated the default value to `true` to keep the bootstrapping behavior as it was before. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-25Update sysinfo version to 0.30.1Guillaume Gomez-3/+3
2023-12-25bootstrap: use same make flags with rustdoconur-ozkan-5/+0
Keeping same `MAKEFLAGS` and `MFLAGS` for rustdoc should allow rustdoc to use the same jobserver. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-22bootstrap: build doc for `cargo-util-schemasWeihang Lo-0/+1
2023-12-21Rollup merge of #119182 - GuillaumeGomez:update-sysinfo, r=onur-ozkanMatthias Krüger-7/+7
Update sysinfo version to 0.30.0 Following last `sysinfo` update. Nothing much needs to be changed here apparently. r? `@onur-ozkan`
2023-12-21Rollup merge of #119124 - onur-ozkan:help-118861, r=Mark-SimulacrumMatthias Krüger-5/+27
don't build `rust-analyzer-proc-macro-srv` on def config Should be very easy to understand when reviewing commit-by-commit. Blocker for #118861
2023-12-21add a new change in change-trackeronur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-21Update sysinfo version to 0.30.0Guillaume Gomez-7/+7
2023-12-19implement remapper for build pathsonur-ozkan-0/+14
In config.toml we use `rust-analyzer-proc-macro-srv` for building `rust-analyzer-proc-macro-srv`, however, when we attempt to build it from the terminal, this cannot be used because we need to use the actual path, which is `proc-macro-srv-cli`. Remapping should end this confusion with improving the development experience. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-19don't build `rust-analyzer-proc-macro-srv` on def configonur-ozkan-5/+8
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-18Auto merge of #118946 - onur-ozkan:fix-clean, r=clubby789bors-2/+8
fix `x clean` for cross-compiled artifacts ```toml build = "x86_64-unknown-linux-gnu" host = ["arm-unknown-linux-gnueabihf"] target = ["arm-unknown-linux-gnueabihf"] ``` On `x86_64-unknown-linux-gnu`, after cross-compiling with the sample configuration above, artifacts under `build/x86_64-unknown-linux-gnu` never gets cleaned with `x clean`. This PR fixes that.