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:
parent
a8e7f57545
commit
972787c6a9
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue