From 2bdaa1f0c181511fab143eccf68c77fcc60c46e2 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 15 Apr 2016 00:04:08 +0530 Subject: Separate out cpu_method to environment.py and add amd64 quirk --- mesonbuild/environment.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mesonbuild/environment.py') 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() -- cgit v1.1