mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Change Cygwin support to produce cygwin executables.
This commit is contained in:
parent
b0f9e30fa4
commit
b6d6a11abf
@ -40,8 +40,6 @@ def load():
|
|||||||
else:
|
else:
|
||||||
hosttype = 'x86_64'
|
hosttype = 'x86_64'
|
||||||
machsize = '32'
|
machsize = '32'
|
||||||
host_triple = '%s-w%s-mingw32' % (hosttype, machsize)
|
|
||||||
build_triple = '%s-w%s-mingw32' % (hosttype, machsize)
|
|
||||||
|
|
||||||
# See if this is actually Cygwin Python
|
# See if this is actually Cygwin Python
|
||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
@ -50,17 +48,16 @@ def load():
|
|||||||
hosttype = uname[4]
|
hosttype = uname[4]
|
||||||
uname = uname[0]
|
uname = uname[0]
|
||||||
if uname.startswith('CYGWIN'):
|
if uname.startswith('CYGWIN'):
|
||||||
if uname.endswith('WOW64'):
|
uname = 'cygwin'
|
||||||
uname = 'cygwin'
|
host_triple = hosttype + '-pc-' + uname
|
||||||
build_triple = hosttype + '-pc-' + uname
|
build_triple = hosttype + '-pc-' + uname
|
||||||
hosttype = 'x86_64'
|
|
||||||
host_triple = hosttype + '-w64-' + system
|
|
||||||
else:
|
|
||||||
raise error.general('invalid uname for Windows')
|
|
||||||
else:
|
else:
|
||||||
raise error.general('invalid POSIX python')
|
raise error.general('invalid POSIX python')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
host_triple = '%s-w%s-mingw32' % (hosttype, machsize)
|
||||||
|
build_triple = '%s-w%s-mingw32' % (hosttype, machsize)
|
||||||
|
|
||||||
if os.environ.has_key('NUMBER_OF_PROCESSORS'):
|
if os.environ.has_key('NUMBER_OF_PROCESSORS'):
|
||||||
ncpus = os.environ['NUMBER_OF_PROCESSORS']
|
ncpus = os.environ['NUMBER_OF_PROCESSORS']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user