Skip to content

Commit e3a4767

Browse files
committed
Support libraries with no src folder (arduino/arduino-pro-ide#22)
1 parent c1b4166 commit e3a4767

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: handler/builder.go

+2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ func printLibraryPaths(basePath string, printer *Printer) {
251251
srcDir := filepath.Join(libsDir, libInfo.Name(), "src")
252252
if srcInfo, err := os.Stat(srcDir); err == nil && srcInfo.IsDir() {
253253
printer.Println("-I", srcDir)
254+
} else {
255+
printer.Println("-I", filepath.Join(libsDir, libInfo.Name()))
254256
}
255257
}
256258
}

0 commit comments

Comments
 (0)