URL: <https://savannah.gnu.org/bugs/?66050>
Summary: add option --shuffle=nosort
Group: make
Submitter: katchov
Submitted: Wed 31 Jul 2024 07:51:44 PM UTC
Severity: 3 - Normal
Item Group: Enhancement
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: None
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 31 Jul 2024 07:51:44 PM UTC By: Tzvetelin Katchov <katchov>
add option --shuffle=nosort
GNU Make manual:
4.4 Using Wildcard Characters in File Names
If an expression matches multiple files then the results will be
sorted.
4.4.3 The Function wildcard
As with wildcard expansion in rules, the results of the wildcard
function are sorted.
src/read.c:
@@ -3350 +3350 @@
- switch (glob (name, GLOB_ALTDIRFUNC, NULL, &gl))
+ switch (glob (name, GLOB_ALTDIRFUNC | GLOB_NOSORT, NULL, &gl))
Or manually shuffle by special target .FIRST? Prerequisites of this
special target will be reordered to be made first, i.e. to be build
with priority. It will provide hint to GNU Make how to schedule big
monolith targets in parallel build and provide manual fix for bug
#105: Parallel builds should order by slowest-first.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66050>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
