Fix wrong uname flag used

This is required because uname -p actually returns "unknown" for some hardware. The uname help documents this by stating that -p is non-portable. The -m flag is the one to use.
This commit is contained in:
Sven-Hendrik Haase 2018-03-14 06:19:24 +01:00 committed by John Preston
parent 7a849b2899
commit c5e6bfce95
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
'sources': [
'../SourceFiles/platform/linux/linux_glibc_wraps.c',
],
'conditions': [[ '"<!(uname -p)" == "x86_64" or "<!(uname -p)" == "aarch64"', {
'conditions': [[ '"<!(uname -m)" == "x86_64" or "<!(uname -m)" == "aarch64"', {
'sources': [
'../SourceFiles/platform/linux/linux_glibc_wraps_64.c',
],

View File

@ -25,7 +25,7 @@
],
},
'conditions': [
[ '"<!(uname -p)" == "x86_64" or "<!(uname -p)" == "aarch64"', {
[ '"<!(uname -m)" == "x86_64" or "<!(uname -m)" == "aarch64"', {
'defines': [
'Q_OS_LINUX64',
],