Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2008-03-02 20:04:40 -0500
committerSergey Prigogin2008-03-02 20:04:40 -0500
commitf0dc504bd516c9c4d2fdc963cc2824d43cf67cb0 (patch)
treeeb9fd1a9db7a7f364be9390bc07be9c7c0fa1149
parentd0a05b15d78766297c8f8b16d263a001130c6c86 (diff)
downloadorg.eclipse.cdt-f0dc504bd516c9c4d2fdc963cc2824d43cf67cb0.tar.gz
org.eclipse.cdt-f0dc504bd516c9c4d2fdc963cc2824d43cf67cb0.tar.xz
org.eclipse.cdt-f0dc504bd516c9c4d2fdc963cc2824d43cf67cb0.zip
Use uname -m instead of uname -p since the latter returns "unknown" on some Linux systems.
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Platform.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Platform.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Platform.java
index f2624ad1a26..29624b7979c 100644
--- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Platform.java
+++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Platform.java
@@ -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 {

Back to the top