39
40
raise Exception("invalid target platform")
41
42
if machine not in ['x86_64', 'x86', 'i686', 'i586',
43
'alpha', 'hppa', 'mips', 'mipsel', 's390',
44
'sparc', 'ia64', 'armel', 'hurd-i386',
42
46
'i486', 'i386', 'powerpc', 'powerpc64',
47
'amd64', 'AMD64', 'EM64T', 'INTEL64']:
44
48
raise Exception("invalid machine type")
46
50
if toolchain not in ['gnu', 'msvs']: