1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00

Fixed PPC Mac support broken with fix for 148415. Platform.getOSArch() now returns "powerpc", this used to return "ppc".

This commit is contained in:
Ken Ryall 2006-09-20 18:25:33 +00:00
parent 393d4235cd
commit f7109c7d5a

View file

@ -93,7 +93,8 @@ public class DebugConfiguration implements ICDebugConfiguration {
public boolean supportsCPU(String cpu) {
String nativeCPU = Platform.getOSArch();
boolean ret = false;
if ( nativeCPU.startsWith(cpu) ) {
if ( nativeCPU.startsWith(cpu) ||
nativeCPU.equalsIgnoreCase("powerpc") && cpu.equalsIgnoreCase("ppc")) {
ret = getCPUs().contains(CPU_NATIVE);
}
return ret || getCPUs().contains(cpu) || getCPUs().contains("*"); //$NON-NLS-1$