Fixed targets ti be x86_64, important note: have not tested this on linux machine

This commit is contained in:
Mario Melara 2015-12-11 12:04:47 -08:00
parent fee88d289d
commit 31df2dd9dd

View file

@ -3,9 +3,9 @@
class Linux(Architecture): class Linux(Architecture):
priority = 60 priority = 60
front_end = 'linux' front_end = 'x86_64'
back_end = 'linux' back_end = 'x86_64'
default = 'linux' default = 'x86_64'
def __init__(self): def __init__(self):
super(Linux, self).__init__('linux') super(Linux, self).__init__('linux')
@ -15,4 +15,4 @@ def __init__(self):
def detect(self): def detect(self):
arch = subprocess.Popen(['uname', '-i'], stdout = subprocess.PIPE) arch = subprocess.Popen(['uname', '-i'], stdout = subprocess.PIPE)
arch, _ = arch.communicate() arch, _ = arch.communicate()
return 'x86_64' in arch.strip() return 'linux' in arch.strip().lower()