Changeset 1675a73 in rtems-source-builder


Ignore:
Timestamp:
Apr 12, 2016, 11:13:55 PM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
462f915
Parents:
febf4fb
git-author:
Chris Johns <chrisj@…> (04/12/16 23:13:55)
git-committer:
Chris Johns <chrisj@…> (04/15/16 05:26:12)
Message:

gdb: Build with system readline and use MinGW compilers.

Select MinGW compilers for Windows builds on Windows.

Use the system readline rather than GDB's which does not
handle cmd.exe correctly.

Closes #2681.

Location:
source-builder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/config/gdb-7-1.cfg

    rfebf4fb r1675a73  
    88# See if the simulator has been disabled for Windows.
    99#
     10# Build using the system's readline, it is in better shape
     11# than GDB's one with MSYS2.
     12#
    1013%if %{_host_os} == win32
    1114 %if %{defined win32-gdb-disable-sim}
    1215  %define gdb-disable-sim 1
    13   %endif
     16 %endif
     17 %define with_system_readline 1
    1418%endif
    1519
     
    108112    --target=%{_target} \
    109113    --verbose --disable-nls \
     114    %{?with_system_readline:--with-system-readline} \
    110115    --without-included-gettext \
    111116    --disable-win32-registry \
  • source-builder/sb/windows.py

    rfebf4fb r1675a73  
    4646    machine = 'w%s' % (machsize)
    4747
     48    # Set the C/C++ compilers we want to use.
     49    cc = '%s-%s-%s-gcc' % (hosttype, machine, uname)
     50    cxx = '%s-%s-%s-g++' % (hosttype, machine, uname)
     51
    4852    # See if this is actually MSYS2/Cygwin Python
    4953    if os.name == 'posix':
     
    5559            uname = 'cygwin'
    5660            machine = 'pc'
     61            cc = 'gcc'
     62            cxx = 'g++'
    5763        else:
    5864            raise error.general('invalid POSIX python for Windows')
     
    9298        '__bison':           ('exe',     'required', 'bison'),
    9399        '__cat':             ('exe',     'required', 'cat'),
    94         '__cc':              ('exe',     'required', 'gcc'),
     100        '__cc':              ('exe',     'required', cc),
    95101        '__chgrp':           ('exe',     'required', 'chgrp'),
    96102        '__chmod':           ('exe',     'required', 'chmod'),
     
    98104        '__cp':              ('exe',     'required', 'cp'),
    99105        '__cvs':             ('exe',     'optional', 'cvs'),
    100         '__cxx':             ('exe',     'required', 'g++'),
     106        '__cxx':             ('exe',     'required', cxx),
    101107        '__flex':            ('exe',     'required', 'flex'),
    102108        '__git':             ('exe',     'required', 'git'),
Note: See TracChangeset for help on using the changeset viewer.