refactor: add cfg aliases - #11016
Conversation
|
GNU testsuite comparison: |
b98f746 to
bf4239f
Compare
|
GNU testsuite comparison: |
bf4239f to
0fcde2d
Compare
|
GNU testsuite comparison: |
sylvestre
left a comment
There was a problem hiding this comment.
sorry
i really don't like the duplication of src/uu/*/build.rs
|
I don’t like the duplication either, but I’m not sure how to avoid it. Do you have suggestions on how we could factor this out? |
|
i prefer the current state than this duplication, sorry |
|
I guess we could |
|
if it works, it would be better |
|
I've tried specifying the cfg in The only alternative I can think of is introducing a small |
@sylvestre If this works, would you approve the changes? |
|
Cannot we use workespace's toplevel build.rs? |
i don't think it works. i tried too and failed |
yes |
0fcde2d to
945a586
Compare
Annoyingly, this didn't work. |
|
GNU testsuite comparison: |
945a586 to
5d3b4fd
Compare
|
GNU testsuite comparison: |
5d3b4fd to
971a907
Compare
|
GNU testsuite comparison: |
|
I don't like symlink since it breaks tarball extraction on Windows, but can you symlink build.rs? |
Can't do this because some utilities already have a |
971a907 to
585db72
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0ce8ee5 to
496d9fd
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0d17e4e to
9b7dca7
Compare
|
I'm not sure if you still want to continue this. But if this is blocked by crate's limitation, you should open an issue at there. |
98c8cea to
905939c
Compare
|
@oech3 It's not blocked, but I don't know how to avoid duplication of the aliases |
This actually works, but |
905939c to
b5bdfc2
Compare
5a8245d to
cf5b309
Compare
Merging this PR will regress 4 benchmarks
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | numfmt_to_si_precision[10000] |
90.5 ms | 95 ms | -4.79% |
| ❌ | Simulation | du_max_depth_balanced_tree[(6, 4, 10)] |
60.2 ms | 62.3 ms | -3.32% |
| ❌ | Simulation | numfmt_large_numbers_si[10000] |
92.8 ms | 95.9 ms | -3.24% |
| ❌ | Simulation | du_summarize_balanced_tree[(5, 4, 10)] |
15.5 ms | 16 ms | -3.17% |
| ⚡ | Simulation | false_consecutive_calls |
383.6 ns | 316.9 ns | +21.04% |
| ⚡ | Simulation | ls_recursive_deep_tree[(200, 2)] |
3.6 ms | 3.5 ms | +4.39% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing xtqqczze:cfg_aliases/selinux (ff464bc) with main (b13ee7a)
Footnotes
-
46 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. ↩
b857ab8 to
f2a0541
Compare
f2a0541 to
ff464bc
Compare
Fixes pre-commit hook failures on non-Linux platforms by adding proper
#[cfg(target_os = "linux")]guards to selinux/smack feature gates.Contributes to #11019
Closes #10995