aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek.chauhan@gmail.com>2016-04-15 00:04:08 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2016-04-15 00:25:35 +0530
commit2bdaa1f0c181511fab143eccf68c77fcc60c46e2 (patch)
tree8bf803992ee30da0bdd10773264cd9c82fc0400b /mesonbuild/environment.py
parentc0765b0e8da6ad699b02dcc19a6480b3e6f71655 (diff)
downloadmeson-2bdaa1f0c181511fab143eccf68c77fcc60c46e2.zip
meson-2bdaa1f0c181511fab143eccf68c77fcc60c46e2.tar.gz
meson-2bdaa1f0c181511fab143eccf68c77fcc60c46e2.tar.bz2
Separate out cpu_method to environment.py and add amd64 quirk
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index eae7cc0..a7d6d97 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -69,6 +69,13 @@ def detect_cpu_family():
# Add fixes here as bugs are reported.
return trial
+def detect_cpu():
+ trial = platform.machine().lower()
+ if trial == 'amd64':
+ return 'x86_64'
+ # Add fixes here as bugs are reported.
+ return trial
+
def detect_system():
return platform.system().lower()