Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3fe0b3d
not lint break with label and unsafe block
mu001999 Feb 23, 2025
1c1febc
add new config option: `include`
onur-ozkan Apr 1, 2025
89e3bef
document config extensions
onur-ozkan Mar 25, 2025
4e80659
implement cyclic inclusion handling
onur-ozkan Apr 1, 2025
78cb453
document `include` in `bootstrap.example.toml`
onur-ozkan Apr 1, 2025
3f70f19
apply nit notes
onur-ozkan Apr 1, 2025
8e6f50b
fix path and the ordering logic
onur-ozkan Apr 15, 2025
7dfb457
add FIXME note in `TomlConfig::merge`
onur-ozkan Apr 15, 2025
22dddc6
Sort Unix env constants alphabetically by target_os
thaliaarchi Apr 15, 2025
6d52b51
add comment in `TomlConfig::merge` about the merge order
onur-ozkan Apr 15, 2025
91a0a59
Combine env consts into std::sys::env_consts
thaliaarchi Apr 15, 2025
cac458c
Handle unsupported fallback
thaliaarchi Apr 15, 2025
2024e26
Don't canonicalize crate paths
ChrisDenton Apr 15, 2025
52f35d0
Test for relative paths in crate path diagnostics
ChrisDenton Apr 15, 2025
8270478
resolve config include FIXME
onur-ozkan Apr 16, 2025
5a38550
Deduplicate nix code
RossSmyth Apr 3, 2025
d14df26
Make `parent` in `download_auto_job_metrics` optional
Kobzol Apr 16, 2025
111c15c
Extract function for normalizing path delimiters to `utils`
Kobzol Apr 16, 2025
c8a882b
Add command to `citool` for generating a test dashboard
Kobzol Apr 17, 2025
a326afd
Add buttons for expanding and collapsing all test suites
Kobzol Apr 17, 2025
4b31033
Add a note about how to find tests that haven't been executed anywhere.
Kobzol Apr 17, 2025
1a6e0d5
Render test revisions separately
Kobzol Apr 17, 2025
d2c1763
Create a macro for rendering test results
Kobzol Apr 17, 2025
aa9cb70
Print number of root tests and subdirectories
Kobzol Apr 17, 2025
08cb187
Turn `test_dashboard` into a file
Kobzol Apr 17, 2025
cecf167
Add a note about the test dashboard to the post-merge report
Kobzol Apr 17, 2025
136171c
skip llvm-config in autodiff check builds, when its unavailable
ZuseZ4 Apr 18, 2025
65ce38a
Add a note that explains the counts
Kobzol Apr 18, 2025
b18e373
Reduce duplicated test prefixes in nested subdirectories
Kobzol Apr 18, 2025
1b39302
Disable has_thread_local on i686-win7-windows-msvc
roblabla Apr 18, 2025
ac7d1be
add coverage on config include logic
onur-ozkan Apr 16, 2025
ad10d18
Rollup merge of #137454 - mu001999-contrib:fix-137414, r=wesleywiser
matthiaskrgr Apr 18, 2025
978aa0c
Rollup merge of #138934 - onur-ozkan:extended-config-profiles, r=Kobzol
matthiaskrgr Apr 18, 2025
686d407
Rollup merge of #139297 - RossSmyth:NixClean, r=WaffleLapkin
matthiaskrgr Apr 18, 2025
5b0e26b
Rollup merge of #139834 - ChrisDenton:spf, r=WaffleLapkin
matthiaskrgr Apr 18, 2025
c02d6d9
Rollup merge of #139868 - thaliaarchi:move-env-consts-pal, r=joboet
matthiaskrgr Apr 18, 2025
d134af9
Rollup merge of #139978 - Kobzol:ci-test-summary, r=jieyouxu
matthiaskrgr Apr 18, 2025
bdfd089
Rollup merge of #140000 - EnzymeAD:autodiff-check-builds, r=onur-ozkan
matthiaskrgr Apr 18, 2025
318226a
Rollup merge of #140007 - roblabla:fix-win7, r=ChrisDenton
matthiaskrgr Apr 18, 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
Prev Previous commit
Next Next commit
Handle unsupported fallback
  • Loading branch information
thaliaarchi committed Apr 15, 2025
commit cac458c933a0e61c64a0e3296b995a2c39aa4303
29 changes: 28 additions & 1 deletion library/std/src/sys/env_consts.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
//! Constants associated with each target.

// Collect all #[cfg(…)] gates, so that the #[else] fallback entry is
// #[cfg(not(any(…)))] of all of them. This ensures that they are mutually
// exclusive and do not have precedence like cfg_if!.
macro_rules! cfg_unordered {
([$($cfgs:meta,)*] #[cfg($cfg:meta)] $os:item $($rest:tt)*) => {
#[cfg($cfg)] $os
cfg_unordered!([$($cfgs,)* $cfg,] $($rest)*);
};
([$($cfgs:meta,)*] #[else] $last:item) => {
#[cfg(not(any($($cfgs),*)))] $last
};
}

// Keep entries sorted alphabetically.

cfg_unordered! { []

#[cfg(target_os = "aix")]
pub mod os {
pub const FAMILY: &str = "unix";
Expand Down Expand Up @@ -376,4 +391,16 @@ pub mod os {
pub const EXE_EXTENSION: &str = "exe";
}

// Keep entries sorted alphabetically.
// Fallback when unsupported:
#[else]
pub mod os {
pub const FAMILY: &str = "";
pub const OS: &str = "";
pub const DLL_PREFIX: &str = "";
pub const DLL_SUFFIX: &str = "";
pub const DLL_EXTENSION: &str = "";
pub const EXE_SUFFIX: &str = "";
pub const EXE_EXTENSION: &str = "";
}

}
Loading