Skip to content

Commit 89d77ff

Browse files
committed
Don't try to absolutize the filepath if empty
On Windows, it fails with the rather cryptic error message "The filename, directory name, or volume label syntax is incorrect"
1 parent a440bbb commit 89d77ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/arduino.cc/builder/utils/utils.go

+3
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ func SliceToMapStringBool(keys []string, value bool) map[string]bool {
293293

294294
func AbsolutizePaths(files []string) ([]string, error) {
295295
for idx, file := range files {
296+
if file == "" {
297+
continue
298+
}
296299
absFile, err := filepath.Abs(file)
297300
if err != nil {
298301
return nil, i18n.WrapError(err)

0 commit comments

Comments
 (0)