Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
921b6c0
If HOME is empty, use the fallback instead
ChrisDenton May 31, 2025
f75595d
add codegen test for variadics (also replacing some existing does-thi…
RalfJung Jul 23, 2025
732097e
disable cfg.has_reliable_f128 on amdgcn
ZuseZ4 Jul 23, 2025
1de927c
library/windows_targets: Fix macro expansion error in 'link' macro
itf Jul 24, 2025
3d0dedd
Enable outline-atomics for aarch64-unknown-linux-musl
Gelbpunkt Jul 25, 2025
546885c
tests: aarch64-outline-atomics: Remove hardcoded target
Gelbpunkt Jul 25, 2025
73e534b
Revert "Move `shared_helpers` test to a dedicated module"
jieyouxu Jul 25, 2025
430f4f5
Check `./x check bootstrap` in `pr-check-1`
jieyouxu Jul 25, 2025
25036f5
canonicalize build root in `tests/run-make/linker-warning`
WaffleLapkin Jul 25, 2025
3dac888
Only run bootstrap tests in `x test` on CI
Kobzol Jul 25, 2025
96340f6
Stop compilation if macro expansion failed
GuillaumeGomez Jul 24, 2025
5dddba5
Add missing `NOTE` annotations in `tests/ui/macros/trace-macro.rs`
GuillaumeGomez Jul 24, 2025
2725138
Update ui tests with new macro early erroring
GuillaumeGomez Jul 24, 2025
57481e7
clif: Don't set the `compiler-builtins-no-f16-f128` feature
tgross35 Jul 25, 2025
2b17897
Revert "coverage: Enlarge empty spans during MIR instrumentation, not…
Zalathar Jul 26, 2025
69ebf70
test using multiple c-variadic ABIs in the same program
folkertdev Jul 23, 2025
85e5100
Rollup merge of #141840 - ChrisDenton:noempty, r=ChrisDenton
jhpratt Jul 27, 2025
e2c2d1a
Rollup merge of #144359 - RalfJung:vararg-codegen, r=compiler-errors
jhpratt Jul 27, 2025
c96c802
Rollup merge of #144379 - folkertdev:c-variadic-same-program-multiple…
jhpratt Jul 27, 2025
2c395c7
Rollup merge of #144383 - ZuseZ4:disable-f128-on-amdgcn, r=oli-obk
jhpratt Jul 27, 2025
c92d61d
Rollup merge of #144409 - GuillaumeGomez:macro-expansion-early-abort,…
jhpratt Jul 27, 2025
d809998
Rollup merge of #144422 - itf:itf-patch-2-1, r=ChrisDenton
jhpratt Jul 27, 2025
aaa37e5
Rollup merge of #144429 - Gelbpunkt:outline-atomics-aarch64-musl, r=A…
jhpratt Jul 27, 2025
ba4a691
Rollup merge of #144430 - Gelbpunkt:aarch64-outline-atomics-target, r…
jhpratt Jul 27, 2025
c5e81ea
Rollup merge of #144445 - jieyouxu:revert-shared_helpers_tests, r=Kobzol
jhpratt Jul 27, 2025
e04daf9
Rollup merge of #144453 - WaffleLapkin:canonical-build-root, r=jieyouxu
jhpratt Jul 27, 2025
2c0a331
Rollup merge of #144464 - Kobzol:x-test-default, r=jieyouxu
jhpratt Jul 27, 2025
d250b5c
Rollup merge of #144470 - tgross35:clif-remove-no-f16-f128, r=bjorn3
jhpratt Jul 27, 2025
8aa3d41
Rollup merge of #144480 - Zalathar:revert-empty-span, r=Zalathar
jhpratt Jul 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/bootstrap/src/utils/shared_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
//! This module serves two purposes:
//! 1. It is part of the `utils` module and used in other parts of bootstrap.
//! 2. It is embedded inside bootstrap shims to avoid a dependency on the bootstrap library.
//! Therefore, this module should never use any other bootstrap module. This reduces binary
//! size and improves compilation time by minimizing linking time.
//!
//! 1. It is part of the `utils` module and used in other parts of bootstrap.
//! 2. It is embedded inside bootstrap shims to avoid a dependency on the bootstrap library.
//! Therefore, this module should never use any other bootstrap module. This reduces binary size
//! and improves compilation time by minimizing linking time.

// # Note on tests
//
// If we were to declare a tests submodule here, the shim binaries that include this module via
// `#[path]` would fail to find it, which breaks `./x check bootstrap`. So instead the unit tests
// for this module are in `super::tests::shared_helpers_tests`.

#![allow(dead_code)]

#[cfg(test)]
mod tests;

use std::env;
use std::ffi::OsString;
use std::fs::OpenOptions;
use std::io::Write;
use std::process::Command;
use std::str::FromStr;

// If we were to declare a tests submodule here, the shim binaries that include this
// module via `#[path]` would fail to find it, which breaks `./x check bootstrap`.
// So instead the unit tests for this module are in `super::tests::shared_helpers_tests`.

/// Returns the environment variable which the dynamic library lookup path
/// resides in for this platform.
pub fn dylib_path_var() -> &'static str {
Expand Down
4 changes: 4 additions & 0 deletions src/bootstrap/src/utils/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ use crate::{Build, Config, Flags, t};

pub mod git;

// Note: tests for `shared_helpers` is separate here, as otherwise shim binaries that include the
// `shared_helpers` via `#[path]` would fail to find it, breaking `./x check bootstrap`.
mod shared_helpers_tests;

/// Holds temporary state of a bootstrap test.
/// Right now it is only used to redirect the build directory of the bootstrap
/// invocation, in the future it would be great if we could actually execute
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//! The `shared_helpers` module can't have its own tests submodule, because that would cause
//! problems for the shim binaries that include it via `#[path]`, so instead those unit tests live
//! here.
//!
//! To prevent tidy from complaining about this file not being named `tests.rs`, it lives inside a
//! submodule directory named `tests`.

use crate::utils::shared_helpers::parse_value_from_args;

#[test]
Expand Down
1 change: 1 addition & 0 deletions src/ci/docker/host-x86_64/pr-check-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ COPY host-x86_64/pr-check-1/validate-toolstate.sh /scripts/
# We disable optimized compiler built-ins because that requires a C toolchain for the target.
# We also skip the x86_64-unknown-linux-gnu target as it is well-tested by other jobs.
ENV SCRIPT \
python3 ../x.py check bootstrap && \
/scripts/check-default-config-profiles.sh && \
python3 ../x.py build src/tools/build-manifest && \
python3 ../x.py test --stage 0 src/tools/compiletest && \
Expand Down