~james-page/ubuntu/precise/nodejs/0.6.x-merge

« back to all changes in this revision

Viewing changes to deps/v8/tools/utils.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2011-06-30 07:03:44 UTC
  • mfrom: (7.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110630070344-5928xvhb3ddw5adb
Tags: 0.4.9-1ubuntu1
* Merge from Debian unstable (LP: #786428). Remaining changes:
  - debian/patches/2007_remove_internet_test.patch: Remove test which requires
    internet connection

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    return 'linux'
50
50
  elif id == 'Darwin':
51
51
    return 'macos'
 
52
  elif id.find('CYGWIN') >= 0:
 
53
    return 'cygwin'
52
54
  elif id == 'Windows' or id == 'Microsoft':
53
55
    # On Windows Vista platform.system() can return 'Microsoft' with some
54
56
    # versions of Python, see http://bugs.python.org/issue1082
59
61
    return 'openbsd'
60
62
  elif id == 'SunOS':
61
63
    return 'solaris'
62
 
  elif id.find('CYGWIN') >= 0:
63
 
    return 'cygwin'
64
64
  else:
65
65
    return None
66
66
 
67
67
 
 
68
# This will default to building the 32 bit VM even on machines that are capable
 
69
# of running the 64 bit VM.  Use the scons option --arch=x64 to force it to build
 
70
# the 64 bit VM.
68
71
def GuessArchitecture():
69
72
  id = platform.machine()
 
73
  id = id.lower()  # Windows 7 capitalizes 'AMD64'.
70
74
  if id.startswith('arm'):
71
75
    return 'arm'
72
 
  elif (not id) or (not re.match('(x|i[3-6])86', id) is None):
 
76
  elif (not id) or (not re.match('(x|i[3-6])86$', id) is None):
73
77
    return 'ia32'
74
78
  elif id == 'i86pc':
75
79
    return 'ia32'
 
80
  elif id == 'x86_64':
 
81
    return 'ia32'
76
82
  elif id == 'amd64':
77
83
    return 'ia32'
78
84
  else: