Skip to content

Commit

Permalink
Sort filename (if given) by name for consistent output
Browse files Browse the repository at this point in the history
Currently the generation of lamdas can change depending on when the
source file is processed.

This sorts the array of files (if given) to always have a predictable
order independent of order given on the commandline / arguments.

Relates to #1921
  • Loading branch information
laeubi committed Jan 30, 2024
1 parent dd187c7 commit d69ce19
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,10 @@ public boolean compile(String[] argv) {
// decode command line arguments
try {
configure(argv);
if (this.filenames != null) {
// sort file names so we have a consistent order of compiling / handling them
Arrays.sort(this.filenames);
}
if (this.progress != null)
this.progress.begin(this.filenames == null ? 0 : this.filenames.length * this.maxRepetition);
if (this.proceed) {
Expand Down

0 comments on commit d69ce19

Please sign in to comment.