Skip to content

Commit eab9474

Browse files
committed
sort objectFiles slice alphabetically
this makes the compilation deterministic. fixes arduino/Arduino#7278
1 parent 748c70d commit eab9474

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: builder_utils/utils.go

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"os"
3535
"os/exec"
3636
"path/filepath"
37+
"sort"
3738
"strconv"
3839
"strings"
3940
"sync"
@@ -200,6 +201,7 @@ func compileFilesWithRecipe(ctx *types.Context, objectFiles []string, sourcePath
200201
for objectFile := range objectFilesChan {
201202
objectFiles = append(objectFiles, objectFile)
202203
}
204+
sort.Strings(objectFiles)
203205
return objectFiles, nil
204206
}
205207
}

0 commit comments

Comments
 (0)