Repository navigation
Conversation
| const FEATURE_PREFIX: &str = "feat_"; | ||
| const OVERRIDE_PREFIX: &str = "uu_"; | ||
|
|
||
| // Configuration aliases are crate-local; integration tests need this too. |
There was a problem hiding this comment.
| // Configuration aliases are crate-local; integration tests need this too. |
no need to narrate the diff in comments
There was a problem hiding this comment.
Is this applied for uu_*? Or coreutils and test only?
There was a problem hiding this comment.
Is this applied for
uu_*? Orcoreutilsand test only?
These changes affect coreutils package only (including tests/by-util).
There was a problem hiding this comment.
Unfortunately, we have to define cfg aliases in each package, at least based on my conclusions in #11016.
There was a problem hiding this comment.
If we want the full buffet, could we put the alias definitions in a shared build helper that each package’s build.rs calls? Cargo would still need the hookup in each package, but at least we’d only cook the BSD list once
There was a problem hiding this comment.
could we put the alias definitions in a shared build helper that each package’s build.rs calls?
We already tried and failed to make that work: #11016 (comment)
There was a problem hiding this comment.
Could we reuse uucore_procs for a small platform_cfg_aliases!() macro called from each build script? It could supply the shared platform-only aliases and accept package-specific aliases as input. That would preserve the existing cfg checks without another helper crate or cross-package includes. Each package would still need to opt in, but perhaps we could try it just for root + stty first?
There was a problem hiding this comment.
We found the right approach for a shared build helper: #15634.
5875f0b to
9ee6a9d
Compare
Merging this PR will degrade performance by 8.45%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | factor_three_39_bit_primes |
593.6 ms | 752.6 ms | -21.12% |
| ⚡ | Simulation | factor_five_38_bit_primes |
1.9 s | 1.8 s | +6.25% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing limadog9:fix/stty-test-bsd-alias (9ee6a9d) with main (2e28cc3)
Footnotes
-
70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
|
Superseded by #15634. |
Define the BSD configuration alias for integration tests and use it in test_stty.rs instead of repeated platform lists.
Closes #15423.