Changeset b6d6a11 in rtems-source-builder


Ignore:
Timestamp:
Mar 17, 2015, 9:54:48 PM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
a83fc54
Parents:
b0f9e30
Message:

sb: Change Cygwin support to produce cygwin executables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/windows.py

    rb0f9e30 rb6d6a11  
    4141        hosttype = 'x86_64'
    4242        machsize = '32'
    43     host_triple = '%s-w%s-mingw32' % (hosttype, machsize)
    44     build_triple = '%s-w%s-mingw32' % (hosttype, machsize)
    4543
    4644    # See if this is actually Cygwin Python
     
    5149            uname = uname[0]
    5250            if uname.startswith('CYGWIN'):
    53                 if uname.endswith('WOW64'):
    54                     uname = 'cygwin'
    55                     build_triple = hosttype + '-pc-' + uname
    56                     hosttype = 'x86_64'
    57                     host_triple = hosttype + '-w64-' + system
    58                 else:
    59                     raise error.general('invalid uname for Windows')
     51                uname = 'cygwin'
     52                host_triple = hosttype + '-pc-' + uname
     53                build_triple = hosttype + '-pc-' + uname
    6054            else:
    6155                raise error.general('invalid POSIX python')
    6256        except:
    6357            pass
     58    else:
     59        host_triple = '%s-w%s-mingw32' % (hosttype, machsize)
     60        build_triple = '%s-w%s-mingw32' % (hosttype, machsize)
    6461
    6562    if os.environ.has_key('NUMBER_OF_PROCESSORS'):
Note: See TracChangeset for help on using the changeset viewer.