Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added back 'x86' arch to supported list

  • Loading branch information...
commit 19598ea755f197001f6e9f0695f097280bd904c8 1 parent 589e279
@tautologistics authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 wscript
View
6 wscript
@@ -13,7 +13,7 @@ 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'):
@@ -21,7 +21,7 @@ if os.environ.has_key('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]
Please sign in to comment.
Something went wrong with that request. Please try again.