1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

Bug 480181 - Missing Arduino tools host choice for Linux

Change-Id: Icd47871214a21fcbc322b61abfb201d23b31ba7d
This commit is contained in:
Doug Schaefer 2015-10-20 12:13:50 -04:00
parent 8e38e98780
commit 14b6ad286e

View file

@ -60,9 +60,21 @@ public class ArduinoToolSystem {
case Platform.OS_LINUX:
switch (Platform.getOSArch()) {
case Platform.ARCH_X86_64:
return "x86_64-pc-linux-gnu".equals(host); //$NON-NLS-1$
switch (host) {
case "x86_64-pc-linux-gnu": //$NON-NLS-1$
case "x86_64-linux-gnu": //$NON-NLS-1$
return true;
default:
return false;
}
case Platform.ARCH_X86:
return "i686-pc-linux-gnu".equals(host); //$NON-NLS-1$
switch (host) {
case "i686-pc-linux-gnu": //$NON-NLS-1$
case "i686-linux-gnu": //$NON-NLS-1$
return true;
default:
return false;
}
default:
return false;
}