mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
IDE warns if a library is compiled with an unsupported architecture
This commit is contained in:
@ -102,6 +102,18 @@ public class Compiler implements MessageConsumer {
|
|||||||
if (verbose)
|
if (verbose)
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
|
||||||
|
String arch = Base.getTargetPlatform().getId();
|
||||||
|
for (Library lib : sketch.getImportedLibraries()) {
|
||||||
|
if (!lib.supportsArchitecture(arch)) {
|
||||||
|
System.err.println(I18n
|
||||||
|
.format(_("WARNING: library {0} claims to run on {1} "
|
||||||
|
+ "architecture(s) and may be incompatible with your"
|
||||||
|
+ " current board which runs on [{2}] architecture."), lib
|
||||||
|
.getName(), lib.getArchitectures(), arch));
|
||||||
|
System.err.println();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 1. compile the sketch (already in the buildPath)
|
// 1. compile the sketch (already in the buildPath)
|
||||||
sketch.setCompilingProgress(30);
|
sketch.setCompilingProgress(30);
|
||||||
compileSketch(includeFolders);
|
compileSketch(includeFolders);
|
||||||
|
Reference in New Issue
Block a user