Skip to content

Commit aaf86b4

Browse files
author
Federico Fissore
committed
arduino-builder: sketchbook libraries specified as last param, because they
are more important
1 parent 8c57dd8 commit aaf86b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino-core/src/cc/arduino/Compiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ private void callArduinoBuilder(TargetBoard board, TargetPlatform platform, Targ
207207
}
208208
});
209209

210-
commandLine.addArgument("-libraries", false);
211-
commandLine.addArgument("\"" + BaseNoGui.getSketchbookLibrariesFolder().getAbsolutePath() + "\"", false);
212210
commandLine.addArgument("-libraries", false);
213211
commandLine.addArgument("\"" + BaseNoGui.getContentFile("libraries").getAbsolutePath() + "\"", false);
212+
commandLine.addArgument("-libraries", false);
213+
commandLine.addArgument("\"" + BaseNoGui.getSketchbookLibrariesFolder().getAbsolutePath() + "\"", false);
214214

215215
String fqbn = Stream.of(aPackage.getId(), platform.getId(), board.getId(), boardOptions(board)).filter(s -> !s.isEmpty()).collect(Collectors.joining(":"));
216216
commandLine.addArgument("-fqbn=" + fqbn, false);

0 commit comments

Comments
 (0)