1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Use uname -m instead of uname -p since the latter returns "unknown" on some Linux systems.

This commit is contained in:
Sergey Prigogin 2008-03-03 00:58:56 +00:00
parent a8e7f57545
commit 972787c6a9

View file

@ -78,7 +78,8 @@ public final class Platform {
if (org.eclipse.core.runtime.Platform.OS_WIN32.equals(getOS())) {
cmd = new String[] {"cmd", "/c", "set", "PROCESSOR_ARCHITECTURE"}; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
} else {
cmd = new String[] {"uname", "-p"}; //$NON-NLS-1$//$NON-NLS-2$
// We don't use "uname -p" since it returns "unknown" on some Linux systems.
cmd = new String[] {"uname", "-m"}; //$NON-NLS-1$//$NON-NLS-2$
}
try {