mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Consider sketchbook and bundled libraries folders only if they exists
This commit is contained in:
parent
a044f59634
commit
ff5b9f6660
@ -237,10 +237,8 @@ public class Compiler implements MessageConsumer {
|
|||||||
addPathFlagIfPathExists(cmd, "-tools", Paths.get(BaseNoGui.getHardwarePath(), "tools", "avr").toFile());
|
addPathFlagIfPathExists(cmd, "-tools", Paths.get(BaseNoGui.getHardwarePath(), "tools", "avr").toFile());
|
||||||
addPathFlagIfPathExists(cmd, "-tools", installedPackagesFolder);
|
addPathFlagIfPathExists(cmd, "-tools", installedPackagesFolder);
|
||||||
|
|
||||||
cmd.add("-built-in-libraries");
|
addPathFlagIfPathExists(cmd, "-built-in-libraries", BaseNoGui.getContentFile("libraries"));
|
||||||
cmd.add(BaseNoGui.getContentFile("libraries").getAbsolutePath());
|
addPathFlagIfPathExists(cmd, "-libraries", BaseNoGui.getSketchbookLibrariesFolder());
|
||||||
cmd.add("-libraries");
|
|
||||||
cmd.add(BaseNoGui.getSketchbookLibrariesFolder().getAbsolutePath());
|
|
||||||
|
|
||||||
String fqbn = Stream.of(aPackage.getId(), platform.getId(), board.getId(), boardOptions(board)).filter(s -> !s.isEmpty()).collect(Collectors.joining(":"));
|
String fqbn = Stream.of(aPackage.getId(), platform.getId(), board.getId(), boardOptions(board)).filter(s -> !s.isEmpty()).collect(Collectors.joining(":"));
|
||||||
cmd.add("-fqbn=" + fqbn);
|
cmd.add("-fqbn=" + fqbn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user