Browse files

Added back 'x86' arch to supported list

  • Loading branch information...
1 parent 589e279 commit 19598ea755f197001f6e9f0695f097280bd904c8 @tautologistics committed Nov 14, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 wscript
View
6 wscript
@@ -13,15 +13,15 @@ import js2c
srcdir = '.'
blddir = 'build'
-supported_archs = ('arm', 'ia32', 'x64') # 'mips' supported by v8, but not node
+supported_archs = ('arm', 'ia32', 'x86', 'x64') # 'mips' supported by v8, but not node
jobs=1
if os.environ.has_key('JOBS'):
jobs = int(os.environ['JOBS'])
def canonical_cpu_type(arch):
- m = {'i386':'ia32', 'x86_64':'x64', 'amd64':'x64'}
+ m = {'x86': 'ia32', 'i386':'ia32', 'x86_64':'x64', 'amd64':'x64'}
if arch in m: arch = m[arch]
if not arch in supported_archs:
raise Exception("supported architectures are "+', '.join(supported_archs)+\
@@ -309,7 +309,7 @@ def configure(conf):
if 'DEST_CPU' in conf.env:
arch = conf.env['DEST_CPU']
# map supported_archs to GCC names:
- arch_mappings = {'ia32': 'i386', 'x64': 'x86_64'}
+ arch_mappings = {'x86': 'i386', 'ia32': 'i386', 'x64': 'x86_64'}
if arch in arch_mappings:
arch = arch_mappings[arch]
flags = ['-arch', arch]

0 comments on commit 19598ea

Please sign in to comment.