improve architecture detection
Recognize ppc64, ppc, s390x, s390 CPUs, default to 'none' instead of i686 (which tries to build with SSE and fails on non-x86 architectures).
This commit is contained in:
parent
bbd79b6792
commit
b4cb506cea
17
wscript
17
wscript
@ -182,16 +182,15 @@ def set_compiler_flags (conf,opt):
|
|||||||
else:
|
else:
|
||||||
conf.env['build_target'] = 'mountainlion'
|
conf.env['build_target'] = 'mountainlion'
|
||||||
else:
|
else:
|
||||||
if re.search ("x86_64", cpu) != None:
|
match = re.search(
|
||||||
conf.env['build_target'] = 'x86_64'
|
"(?P<cpu>i[0-6]86|x86_64|powerpc|ppc|ppc64|arm|s390x?)",
|
||||||
elif re.search("i[0-5]86", cpu) != None:
|
cpu)
|
||||||
conf.env['build_target'] = 'i386'
|
if (match):
|
||||||
elif re.search("powerpc", cpu) != None:
|
conf.env['build_target'] = match.group("cpu")
|
||||||
conf.env['build_target'] = 'powerpc'
|
if re.search("i[0-5]86", conf.env['build_target']):
|
||||||
elif re.search("arm", cpu) != None:
|
conf.env['build_target'] = "i386"
|
||||||
conf.env['build_target'] = 'arm'
|
|
||||||
else:
|
else:
|
||||||
conf.env['build_target'] = 'i686'
|
conf.env['build_target'] = 'none'
|
||||||
else:
|
else:
|
||||||
conf.env['build_target'] = opt.dist_target
|
conf.env['build_target'] = opt.dist_target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user